diff --git a/wp-includes/version.php b/wp-includes/version.php index 3d9cfc3519..e884879323 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57605'; +$wp_version = '6.5-alpha-57606'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-settings.php b/wp-settings.php index 3e01b7df4d..217d97c94d 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -499,10 +499,11 @@ if ( ! is_multisite() && wp_is_fatal_error_handler_enabled() ) { } // Load active plugins. -$all_plugin_data = get_option( 'plugin_data', array() ); -$failed_plugins = array(); +$all_plugin_data = get_option( 'plugin_data', array() ); +$failed_plugins = array(); +$plugins_dir_strlen = strlen( trailingslashit( WP_PLUGIN_DIR ) ); foreach ( wp_get_active_and_valid_plugins() as $plugin ) { - $plugin_file = str_replace( trailingslashit( WP_PLUGIN_DIR ), '', $plugin ); + $plugin_file = substr( $plugin, $plugins_dir_strlen ); $plugin_headers = $all_plugin_data[ $plugin_file ]; $errors = array(); $requirements = array(