diff --git a/plugins/performance-lab/includes/admin/plugins.php b/plugins/performance-lab/includes/admin/plugins.php index 882b337ef..709300061 100644 --- a/plugins/performance-lab/includes/admin/plugins.php +++ b/plugins/performance-lab/includes/admin/plugins.php @@ -19,7 +19,7 @@ * @return array{name: string, slug: string, short_description: string, requires: string|false, requires_php: string|false, requires_plugins: string[], download_link: string, version: string}|WP_Error Array of plugin data or WP_Error if failed. */ function perflab_query_plugin_info( string $plugin_slug ) { - $transient_key = 'perflab_plugins_info'; + $transient_key = 'perflab_plugins_info-v2'; $plugins = get_transient( $transient_key ); if ( is_array( $plugins ) ) { @@ -69,7 +69,10 @@ function perflab_query_plugin_info( string $plugin_slug ) { } $plugins = array(); - $standalone_plugins = array_flip( perflab_get_standalone_plugins() ); + $standalone_plugins = array_merge( + array_flip( perflab_get_standalone_plugins() ), + array( 'optimization-detective' => array() ) // TODO: Programmatically discover the plugin dependencies and add them here. + ); foreach ( $response->plugins as $plugin_data ) { if ( ! isset( $standalone_plugins[ $plugin_data['slug'] ] ) ) { continue; diff --git a/plugins/performance-lab/load.php b/plugins/performance-lab/load.php index c7793abaa..304089d13 100644 --- a/plugins/performance-lab/load.php +++ b/plugins/performance-lab/load.php @@ -5,7 +5,7 @@ * Description: Performance plugin from the WordPress Performance Team, which is a collection of standalone performance features. * Requires at least: 6.5 * Requires PHP: 7.2 - * Version: 3.5.0 + * Version: 3.5.1 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -19,7 +19,7 @@ exit; // Exit if accessed directly. } -define( 'PERFLAB_VERSION', '3.5.0' ); +define( 'PERFLAB_VERSION', '3.5.1' ); define( 'PERFLAB_MAIN_FILE', __FILE__ ); define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) ); define( 'PERFLAB_SCREEN', 'performance-lab' ); diff --git a/plugins/performance-lab/readme.txt b/plugins/performance-lab/readme.txt index b83225f2c..dcae69105 100644 --- a/plugins/performance-lab/readme.txt +++ b/plugins/performance-lab/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Tested up to: 6.7 -Stable tag: 3.5.0 +Stable tag: 3.5.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, site health, measurement, optimization, diagnostics @@ -71,6 +71,12 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == += 3.5.1 = + +**Bug Fixes** + +* Account for plugin dependencies when storing relevant plugin info. ([1613](https://github.com/WordPress/performance/pull/1613)) + = 3.5.0 = **Enhancements**