Skip to content

Commit 1e56ba3

Browse files
authored
fix: check if constants are defined (#3626)
1 parent f7e3827 commit 1e56ba3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function stackable_multiple_plugins_check() {
2626
}
2727
}
2828

29-
if ( defined('STACKABLE_FILE') && STACKABLE_FILE !== __FILE__ && ! isset( $GLOBALS['OTHER_STACKABLE_FILE'] ) ) {
29+
if ( defined('STACKABLE_FILE') && STACKABLE_FILE !== __FILE__ && ! isset( $GLOBALS['OTHER_STACKABLE_FILE'] ) &&
30+
defined( 'STACKABLE_BUILD' ) && defined( 'STACKABLE_VERSION' ) ) {
3031
// Get relative file path of the other Stackable version.
3132
$GLOBALS['OTHER_STACKABLE_FILE'] = plugin_basename( STACKABLE_FILE );
3233

0 commit comments

Comments
 (0)