Skip to content

Commit

Permalink
Backport PR #74 and #79
Browse files Browse the repository at this point in the history
  • Loading branch information
msaggiorato committed Apr 2, 2021
1 parent e837ab5 commit 5c4c800
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ public static function compatible_plugin( $return_name = false ) {
$match = false;
if ( 0 === strpos( $definition_name, 'global' ) ) {
$global_name = str_replace( 'global_', '', $definition_name );
global ${$global_name};
if ( ${$global_name} ) {

if ( isset( $GLOBALS[ $global_name ] ) && $GLOBALS[ $global_name ] ) {
$match = true;
}
} elseif ( 0 === strpos( $definition_name, 'class' ) ) {
Expand Down

0 comments on commit 5c4c800

Please sign in to comment.