We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11e5f09 commit e30a846Copy full SHA for e30a846
plugin.php
@@ -28,8 +28,7 @@ function stackable_multiple_plugins_check() {
28
29
if ( defined('STACKABLE_FILE') && STACKABLE_FILE !== __FILE__ && ! isset( $GLOBALS['OTHER_STACKABLE_FILE'] ) ) {
30
// Get relative file path of the other Stackable version.
31
- preg_match( "#([^\/]*?\/plugin.php)$#", STACKABLE_FILE, $matches );
32
- $GLOBALS['OTHER_STACKABLE_FILE'] = $matches[1];
+ $GLOBALS['OTHER_STACKABLE_FILE'] = plugin_basename( STACKABLE_FILE );
33
34
register_activation_hook( __FILE__, 'stackable_multiple_plugins_check' );
35
}
0 commit comments