From 352b1fdb1561b40821442a0a16e3a3a37b092856 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 11 Apr 2024 16:02:14 -0700 Subject: [PATCH 1/9] Update versions in readme.txt and load.php --- load.php | 4 ++-- readme.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/load.php b/load.php index e8624bdda8..54adf9d55a 100644 --- a/load.php +++ b/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.4 * Requires PHP: 7.0 - * Version: 2.9.0 + * Version: 3.0.0 * 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', '2.9.0' ); +define( 'PERFLAB_VERSION', '3.0.0' ); define( 'PERFLAB_MAIN_FILE', __FILE__ ); define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) ); define( 'PERFLAB_SCREEN', 'performance-lab' ); diff --git a/readme.txt b/readme.txt index 89ecb6a77d..5da008724f 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg Requires at least: 6.4 Tested up to: 6.5 Requires PHP: 7.0 -Stable tag: 2.9.0 +Stable tag: 3.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, images, javascript, site health, measurement, object caching From c92f9bb77299cd5cfe6f306f754ef97ca543c755 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 11 Apr 2024 16:04:09 -0700 Subject: [PATCH 2/9] Run npm run since -- -r 3.0.0 --- includes/admin/load.php | 12 ++++++------ .../site-health/audit-autoloaded-options/helper.php | 4 ++-- .../site-health/audit-autoloaded-options/hooks.php | 6 +++--- includes/site-health/load.php | 2 +- load.php | 12 ++++++------ plugins/optimization-detective/storage/data.php | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/includes/admin/load.php b/includes/admin/load.php index a8e1762b1a..f9e4ab7457 100644 --- a/includes/admin/load.php +++ b/includes/admin/load.php @@ -13,7 +13,7 @@ * Adds the features page to the Settings menu. * * @since 1.0.0 - * @since n.e.x.t Renamed to perflab_add_features_page(). + * @since 3.0.0 Renamed to perflab_add_features_page(). */ function perflab_add_features_page() { $hook_suffix = add_options_page( @@ -38,7 +38,7 @@ function perflab_add_features_page() { * Initializes functionality for the features page. * * @since 1.0.0 - * @since n.e.x.t Renamed to perflab_load_features_page(), and the + * @since 3.0.0 Renamed to perflab_load_features_page(), and the * $module and $hook_suffix parameters were removed. */ function perflab_load_features_page() { @@ -56,7 +56,7 @@ function perflab_load_features_page() { * Renders the plugin page. * * @since 1.0.0 - * @since n.e.x.t Renamed to perflab_render_settings_page(). + * @since 3.0.0 Renamed to perflab_render_settings_page(). */ function perflab_render_settings_page() { ?> @@ -205,7 +205,7 @@ function perflab_dismiss_wp_pointer_wrapper() { * Callback function to handle admin scripts. * * @since 2.8.0 - * @since n.e.x.t Renamed to perflab_enqueue_features_page_scripts(). + * @since 3.0.0 Renamed to perflab_enqueue_features_page_scripts(). */ function perflab_enqueue_features_page_scripts() { // These assets are needed for the "Learn more" popover. @@ -217,7 +217,7 @@ function perflab_enqueue_features_page_scripts() { /** * Callback for handling installation/activation of plugin. * - * @since n.e.x.t + * @since 3.0.0 */ function perflab_install_activate_plugin_callback() { check_admin_referer( 'perflab_install_activate_plugin' ); @@ -312,7 +312,7 @@ function perflab_install_activate_plugin_callback() { /** * Callback function to handle admin inline style. * - * @since n.e.x.t + * @since 3.0.0 */ function perflab_print_features_page_style() { ?> diff --git a/includes/site-health/audit-autoloaded-options/helper.php b/includes/site-health/audit-autoloaded-options/helper.php index 54f92961a8..9d978a5e54 100644 --- a/includes/site-health/audit-autoloaded-options/helper.php +++ b/includes/site-health/audit-autoloaded-options/helper.php @@ -195,7 +195,7 @@ function perflab_aao_get_autoloaded_options_table() { /** * Gets disabled autoload options table. * - * @since n.e.x.t + * @since 3.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * @@ -252,7 +252,7 @@ function perflab_aao_get_disabled_autoloaded_options_table() { /** * Gets the autoload values in the database that should trigger their option to be autoloaded. * - * @since n.e.x.t + * @since 3.0.0 * * @return array List of autoload values. */ diff --git a/includes/site-health/audit-autoloaded-options/hooks.php b/includes/site-health/audit-autoloaded-options/hooks.php index db17cec87a..978ffbd5b0 100644 --- a/includes/site-health/audit-autoloaded-options/hooks.php +++ b/includes/site-health/audit-autoloaded-options/hooks.php @@ -30,7 +30,7 @@ function perflab_aao_add_autoloaded_options_test( $tests ) { /** * Register admin actions for handling autoload enable/disable. * - * @since n.e.x.t + * @since 3.0.0 */ function perflab_aao_register_admin_actions() { add_action( 'admin_action_perflab_aao_update_autoload', 'perflab_aao_handle_update_autoload' ); @@ -40,7 +40,7 @@ function perflab_aao_register_admin_actions() { /** * Callback for handling disable autoload action. * - * @since n.e.x.t + * @since 3.0.0 */ function perflab_aao_handle_update_autoload() { check_admin_referer( 'perflab_aao_update_autoload' ); @@ -92,7 +92,7 @@ function perflab_aao_handle_update_autoload() { /** * Callback function hooked to admin_notices to render admin notices on the site health screen. * - * @since n.e.x.t + * @since 3.0.0 * * @global string $pagenow The filename of the current screen. */ diff --git a/includes/site-health/load.php b/includes/site-health/load.php index 8cf164b302..e32d05f8c6 100644 --- a/includes/site-health/load.php +++ b/includes/site-health/load.php @@ -3,7 +3,7 @@ * Site Health checks loader. * * @package performance-lab - * @since n.e.x.t + * @since 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/load.php b/load.php index 54adf9d55a..7f6e3fccd5 100644 --- a/load.php +++ b/load.php @@ -46,7 +46,7 @@ * * @since 1.1.0 * @since 2.9.0 The generator tag now includes the active standalone plugin slugs. - * @since n.e.x.t The generator tag no longer includes module slugs. + * @since 3.0.0 The generator tag no longer includes module slugs. */ function perflab_get_generator_content() { $active_plugins = array(); @@ -81,7 +81,7 @@ function perflab_render_generator() { /** * Gets the standalone plugins and their data. * - * @since n.e.x.t + * @since 3.0.0 * * @return array Associative array of $plugin_slug => $plugin_data pairs. */ @@ -121,7 +121,7 @@ function perflab_get_standalone_plugin_data() { * Gets the standalone plugin constants used for each available standalone plugin. * * @since 2.9.0 - * @since n.e.x.t The $source parameter was removed. + * @since 3.0.0 The $source parameter was removed. * * @return array Map of plugin slug and the version constant used. */ @@ -173,7 +173,7 @@ function perflab_maybe_set_object_cache_dropin() { * * This filter should not be used outside of tests. * - * @since n.e.x.t + * @since 3.0.0 * @internal * * @param int|bool $current_dropin_version The drop-in version as defined by the @@ -294,7 +294,7 @@ function perflab_maybe_remove_object_cache_dropin() { /** * Redirects legacy module page to the performance feature page. * - * @since n.e.x.t + * @since 3.0.0 * * @global $plugin_page */ @@ -317,7 +317,7 @@ function perflab_no_access_redirect_module_to_performance_feature_page() { /** * Cleanup function to delete legacy 'perflab_modules_settings' option if present. * - * @since n.e.x.t + * @since 3.0.0 */ function perflab_cleanup_option() { if ( current_user_can( 'manage_options' ) ) { diff --git a/plugins/optimization-detective/storage/data.php b/plugins/optimization-detective/storage/data.php index 8efd96c5c3..65d3645d26 100644 --- a/plugins/optimization-detective/storage/data.php +++ b/plugins/optimization-detective/storage/data.php @@ -91,7 +91,7 @@ function od_get_normalized_query_vars(): array { * This is essentially the REQUEST_URI prefixed by the scheme and host for the home URL. * This is needed in particular due to subdirectory installs. * - * @since n.e.x.t + * @since 3.0.0 * @access private * * @return string Current URL. From d4c1b47346161b3bc4343904484f9c57cb6cf91c Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 11 Apr 2024 21:30:36 -0700 Subject: [PATCH 3/9] Run readme update --- readme.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 5da008724f..62fbeaff66 100644 --- a/readme.txt +++ b/readme.txt @@ -449,7 +449,21 @@ Contributions are always welcome! Learn more about how to get involved in the [C = 3.0.0 = -Starting with this release, modules such as Image Placeholders and Modern Image Formats are only available as standalone plugins as opposed to bundled modules. After updating, you will be able to easily migrate to this new structure. +**Enhancements** + +* Add caching to the wordpress.org query to get plugin information. ([1022](https://github.com/WordPress/performance/pull/1022)) +* Add support for autoloading enhancements in WordPress 6.6 trunk to autoloaded options Site Health check. ([1112](https://github.com/WordPress/performance/pull/1112)) +* Bump minimum required WordPress version to 6.4. ([1062](https://github.com/WordPress/performance/pull/1062)) +* Enhance `object-cache.php` drop-in placement logic to support updating to a newer version of the file. ([1047](https://github.com/WordPress/performance/pull/1047)) +* Implement support for annotating certain plugins as experimental. ([1111](https://github.com/WordPress/performance/pull/1111)) +* Migrate Site Health checks from being modules to becoming part of the plugin core. ([1042](https://github.com/WordPress/performance/pull/1042)) +* Remove modules infrastructure and UI from the plugin. ([1060](https://github.com/WordPress/performance/pull/1060)) +* Support changing autoload value for largest autoloaded options in Site Health check. ([1048](https://github.com/WordPress/performance/pull/1048)) +* Use plugin slug for generator tag. ([1103](https://github.com/WordPress/performance/pull/1103)) + +**Documentation** + +* Update tested WordPress version to 6.5. ([1027](https://github.com/WordPress/performance/pull/1027)) = 2.5.0 = From efb389e3be596b2280b0027b1d7e78fa9fe51d01 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 11 Apr 2024 21:32:37 -0700 Subject: [PATCH 4/9] Fix since version in Optimization Detective Co-authored-by: Mukesh Panchal --- plugins/optimization-detective/storage/data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/optimization-detective/storage/data.php b/plugins/optimization-detective/storage/data.php index 65d3645d26..9d5adacb3c 100644 --- a/plugins/optimization-detective/storage/data.php +++ b/plugins/optimization-detective/storage/data.php @@ -91,7 +91,7 @@ function od_get_normalized_query_vars(): array { * This is essentially the REQUEST_URI prefixed by the scheme and host for the home URL. * This is needed in particular due to subdirectory installs. * - * @since 3.0.0 + * @since 0.1.1 * @access private * * @return string Current URL. From 0558056a7ab895475c8659d328d76cb9d061072a Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 11 Apr 2024 21:44:07 -0700 Subject: [PATCH 5/9] Remove images and javascript tags since obsolete and over 5 limit --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 62fbeaff66..f61c367762 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Requires PHP: 7.0 Stable tag: 3.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html -Tags: performance, images, javascript, site health, measurement, object caching +Tags: performance, site health, measurement, object caching Performance plugin from the WordPress Performance Team, which is a collection of standalone performance features. From 4bdbd0aac26fdc0a5297c72ab344cef6fc906b2e Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 11 Apr 2024 21:49:25 -0700 Subject: [PATCH 6/9] Fix placement of 3.0.0 changelog entries --- readme.txt | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/readme.txt b/readme.txt index f61c367762..12a95fd57d 100644 --- a/readme.txt +++ b/readme.txt @@ -60,6 +60,24 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == += 3.0.0 = + +**Enhancements** + +* Add caching to the wordpress.org query to get plugin information. ([1022](https://github.com/WordPress/performance/pull/1022)) +* Add support for autoloading enhancements in WordPress 6.6 trunk to autoloaded options Site Health check. ([1112](https://github.com/WordPress/performance/pull/1112)) +* Bump minimum required WordPress version to 6.4. ([1062](https://github.com/WordPress/performance/pull/1062)) +* Enhance `object-cache.php` drop-in placement logic to support updating to a newer version of the file. ([1047](https://github.com/WordPress/performance/pull/1047)) +* Implement support for annotating certain plugins as experimental. ([1111](https://github.com/WordPress/performance/pull/1111)) +* Migrate Site Health checks from being modules to becoming part of the plugin core. ([1042](https://github.com/WordPress/performance/pull/1042)) +* Remove modules infrastructure and UI from the plugin. ([1060](https://github.com/WordPress/performance/pull/1060)) +* Support changing autoload value for largest autoloaded options in Site Health check. ([1048](https://github.com/WordPress/performance/pull/1048)) +* Use plugin slug for generator tag. ([1103](https://github.com/WordPress/performance/pull/1103)) + +**Documentation** + +* Update tested WordPress version to 6.5. ([1027](https://github.com/WordPress/performance/pull/1027)) + = 2.9.0 = **Features** @@ -449,21 +467,7 @@ Contributions are always welcome! Learn more about how to get involved in the [C = 3.0.0 = -**Enhancements** - -* Add caching to the wordpress.org query to get plugin information. ([1022](https://github.com/WordPress/performance/pull/1022)) -* Add support for autoloading enhancements in WordPress 6.6 trunk to autoloaded options Site Health check. ([1112](https://github.com/WordPress/performance/pull/1112)) -* Bump minimum required WordPress version to 6.4. ([1062](https://github.com/WordPress/performance/pull/1062)) -* Enhance `object-cache.php` drop-in placement logic to support updating to a newer version of the file. ([1047](https://github.com/WordPress/performance/pull/1047)) -* Implement support for annotating certain plugins as experimental. ([1111](https://github.com/WordPress/performance/pull/1111)) -* Migrate Site Health checks from being modules to becoming part of the plugin core. ([1042](https://github.com/WordPress/performance/pull/1042)) -* Remove modules infrastructure and UI from the plugin. ([1060](https://github.com/WordPress/performance/pull/1060)) -* Support changing autoload value for largest autoloaded options in Site Health check. ([1048](https://github.com/WordPress/performance/pull/1048)) -* Use plugin slug for generator tag. ([1103](https://github.com/WordPress/performance/pull/1103)) - -**Documentation** - -* Update tested WordPress version to 6.5. ([1027](https://github.com/WordPress/performance/pull/1027)) +Starting with this release, modules such as Image Placeholders and Modern Image Formats are only available as standalone plugins as opposed to bundled modules. After updating, you will be able to easily migrate to this new structure. = 2.5.0 = From 9461d57bdd2cd3749d328a0154d20922dfcf23b3 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 12 Apr 2024 10:46:38 -0700 Subject: [PATCH 7/9] Remove object cache from plugin tags --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 12a95fd57d..a2c14c2bbd 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Requires PHP: 7.0 Stable tag: 3.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html -Tags: performance, site health, measurement, object caching +Tags: performance, site health, measurement Performance plugin from the WordPress Performance Team, which is a collection of standalone performance features. From 9a75894255935daae6a8495d152db488f931c318 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 12 Apr 2024 10:54:33 -0700 Subject: [PATCH 8/9] Add 2 tags suggested by Gemini --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index a2c14c2bbd..8220d483df 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Requires PHP: 7.0 Stable tag: 3.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html -Tags: performance, site health, measurement +Tags: performance, site health, measurement, optimization, diagnostics Performance plugin from the WordPress Performance Team, which is a collection of standalone performance features. From 84b97b1b54ef38808a7ffeae10da42b37479831c Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 15 Apr 2024 15:01:49 +0200 Subject: [PATCH 9/9] Fix indentation Co-authored-by: Mukesh Panchal --- includes/admin/load.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/load.php b/includes/admin/load.php index dca8305f11..80171061c1 100644 --- a/includes/admin/load.php +++ b/includes/admin/load.php @@ -39,7 +39,7 @@ function perflab_add_features_page() { * * @since 1.0.0 * @since 3.0.0 Renamed to perflab_load_features_page(), and the - * $module and $hook_suffix parameters were removed. + * $module and $hook_suffix parameters were removed. */ function perflab_load_features_page() { // Handle script enqueuing for settings page.