Skip to content

Commit

Permalink
Simply use dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Sep 5, 2024
1 parent 325f721 commit e4a3c6a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ public function filter_active_plugins( $active_plugins ) {
if ( defined( 'WP_PLUGIN_CHECK_MAIN_FILE' ) ) {
$plugin_check_file = WP_PLUGIN_CHECK_MAIN_FILE;
} else {
$plugins_dir = defined( 'WP_PLUGIN_DIR' ) ? WP_PLUGIN_DIR : WP_CONTENT_DIR . '/plugins';
$plugin_check_file = $plugins_dir . '/plugin-check/plugin.php';
$plugin_check_file = basename( dirname( __DIR__, 3 ) ) . '/plugin.php';
}

$plugin_check_basename = plugin_basename( $plugin_check_file );
Expand Down

0 comments on commit e4a3c6a

Please sign in to comment.