Skip to content
Snippets Groups Projects
Commit 57d76f5a authored by Dyszczo's avatar Dyszczo
Browse files

Merge branch 'bugfix/interface-exists' into 'master'

interface_exists on interface

See merge request !5
parents b6395d2f fbc5682c
No related branches found
Tags 1.0.2 1.0.5 2.0 2.1
1 merge request!5interface_exists on interface
Pipeline #8309 failed with stages
in 3 minutes and 58 seconds
<?php
if ( ! class_exists( 'WPDesk_Translable' ) ) {
if ( ! interface_exists( 'WPDesk_Translable' ) ) {
require_once 'Translable.php';
}
......
<?php
if (!class_exists('WPDesk_Translable')) {
if ( ! interface_exists( 'WPDesk_Translable' ) ) {
require_once dirname(__FILE__) . '/../Translable.php';
}
......
<?php
if (!class_exists('WPDesk_Translable')) {
if ( ! interface_exists( 'WPDesk_Translable' ) ) {
require_once dirname(__FILE__) . '/../Translable.php';
}
if (!class_exists('WPDesk_Buildable')) {
if ( ! class_exists( 'WPDesk_Buildable' ) ) {
require_once dirname(__FILE__) . '/../Buildable.php';
}
if (!class_exists('WPDesk_Has_Plugin_Info')) {
if ( ! class_exists( 'WPDesk_Has_Plugin_Info' ) ) {
require_once 'Has_Plugin_Info.php';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment