Skip to content

Commit e30a846

Browse files
authored
Update plugin.php
1 parent 11e5f09 commit e30a846

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ function stackable_multiple_plugins_check() {
2828

2929
if ( defined('STACKABLE_FILE') && STACKABLE_FILE !== __FILE__ && ! isset( $GLOBALS['OTHER_STACKABLE_FILE'] ) ) {
3030
// Get relative file path of the other Stackable version.
31-
preg_match( "#([^\/]*?\/plugin.php)$#", STACKABLE_FILE, $matches );
32-
$GLOBALS['OTHER_STACKABLE_FILE'] = $matches[1];
31+
$GLOBALS['OTHER_STACKABLE_FILE'] = plugin_basename( STACKABLE_FILE );
3332

3433
register_activation_hook( __FILE__, 'stackable_multiple_plugins_check' );
3534
}

0 commit comments

Comments
 (0)