From ef950429af6942465124a2892c4eb2510172ca63 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Thu, 13 Jul 2023 14:43:39 -0500 Subject: [PATCH 1/5] Update version numbers for 2.5.0 --- load.php | 4 ++-- readme.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/load.php b/load.php index f2b111ba25..62676198a5 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 modules. * Requires at least: 6.1 * Requires PHP: 5.6 - * Version: 2.4.0 + * Version: 2.5.0 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -15,7 +15,7 @@ * @package performance-lab */ -define( 'PERFLAB_VERSION', '2.4.0' ); +define( 'PERFLAB_VERSION', '2.5.0' ); define( 'PERFLAB_MAIN_FILE', __FILE__ ); define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) ); define( 'PERFLAB_MODULES_SETTING', 'perflab_modules_settings' ); diff --git a/readme.txt b/readme.txt index 32770149c7..055d3692a4 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg Requires at least: 6.1 Tested up to: 6.3 Requires PHP: 5.6 -Stable tag: 2.4.0 +Stable tag: 2.5.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 6287a8ca656d33ee5d228cc9ed3bacf4204194fe Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Thu, 13 Jul 2023 15:51:50 -0500 Subject: [PATCH 2/5] Fix whitespace not matching in `since` command. This fixes an issue where the since command was failing to replace instances of `n.e.x.t` when more than once space occurred between the `@since` and the placeholder version number, e.g., for docblock alignment purposes. --- bin/plugin/commands/since.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/plugin/commands/since.js b/bin/plugin/commands/since.js index af6b34b412..8319888d29 100644 --- a/bin/plugin/commands/since.js +++ b/bin/plugin/commands/since.js @@ -47,13 +47,14 @@ exports.handler = async ( opt ) => { ignore: [ __filename, '**/node_modules', '**/vendor' ], } ); - const regexp = new RegExp( '@since n.e.x.t', 'g' ); + const regexp = new RegExp( '@since(\\s+)n.e.x.t', 'g' ); + files.forEach( ( file ) => { const content = fs.readFileSync( file, 'utf-8' ); if ( regexp.test( content ) ) { fs.writeFileSync( file, - content.replace( regexp, `@since ${ opt.release }` ) + content.replace( regexp, `@since$1${ opt.release }` ) ); } } ); From 311d8873f522238aaabc37c44ba33bea133356bc Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Thu, 13 Jul 2023 16:00:10 -0500 Subject: [PATCH 3/5] Replace @since n.e.x.t. placeholders --- modules/images/fetchpriority/can-load.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/images/fetchpriority/can-load.php b/modules/images/fetchpriority/can-load.php index d521aaa9ee..df9ba6cdc7 100644 --- a/modules/images/fetchpriority/can-load.php +++ b/modules/images/fetchpriority/can-load.php @@ -2,7 +2,7 @@ /** * Can load function to determine if the Fetchpriority feature is already available in WordPress core. * - * @since n.e.x.t + * @since 2.5.0 * @package performance-lab */ From 905e3518941de3bfa6aff46e056288d0dfe64755 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Thu, 13 Jul 2023 16:01:44 -0500 Subject: [PATCH 4/5] Update translation strings for 2.5.0 --- module-i18n.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/module-i18n.php b/module-i18n.php index 1c47b16a96..92761f0dfa 100644 --- a/module-i18n.php +++ b/module-i18n.php @@ -13,7 +13,5 @@ _x( 'Adds a CSS and JS resource check in Site Health status.', 'module description', 'performance-lab' ), _x( 'Autoloaded Options Health Check', 'module name', 'performance-lab' ), _x( 'Adds a check for autoloaded options in Site Health status.', 'module description', 'performance-lab' ), - _x( 'SQLite Integration', 'module name', 'performance-lab' ), - _x( 'Use an SQLite database instead of MySQL.', 'module description', 'performance-lab' ), ); /* THIS IS THE END OF THE GENERATED FILE */ From 442b6adc6a8aea718f0c50416f1b315a8b11d176 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Thu, 13 Jul 2023 16:04:38 -0500 Subject: [PATCH 5/5] Update the readme.txt for 2.5.0 --- readme.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 055d3692a4..b9feea0a67 100644 --- a/readme.txt +++ b/readme.txt @@ -23,7 +23,6 @@ Currently the plugin includes the following performance modules: * **WebP Uploads:** Creates WebP versions for new JPEG image uploads if supported by the server. * **Enqueued Assets Health Check:** Adds a CSS and JS resource check in Site Health status. * **Autoloaded Options Health Check:** Adds a check for autoloaded options in Site Health status. -* **SQLite Integration:** Use an SQLite database instead of MySQL. == Installation == @@ -81,6 +80,14 @@ By default, the WebP Uploads module will only generate WebP versions of the imag == Changelog == += 2.5.0 = + +**Enhancements** + +* Images: Check for fetchpriority feature being available in WordPress core before loading the module. ([769](https://github.com/WordPress/performance/pull/769)) +* Database Optimization: Remove SQLite module. ([764](https://github.com/WordPress/performance/pull/764)) +* Infrastructure: Bump tested up to version to 6.3. ([772](https://github.com/WordPress/performance/pull/772)) + = 2.4.0 = **Enhancements**