From 6d550be7015b0bdd83434a79b2a4b29d60dbd6db Mon Sep 17 00:00:00 2001 From: Crisoforo Gaspar Date: Mon, 4 Apr 2022 10:47:07 -0500 Subject: [PATCH 1/3] Update version number of the plugin --- load.php | 2 +- modules/images/webp-uploads/load.php | 10 +++++----- readme.txt | 2 +- .../images/webp-uploads/class-wp-image-edit.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/load.php b/load.php index 2eb7bf4274..f67a1358f8 100644 --- a/load.php +++ b/load.php @@ -5,7 +5,7 @@ * Description: Performance plugin from the WordPress Performance Group, which is a collection of standalone performance modules. * Requires at least: 5.8 * Requires PHP: 5.6 - * Version: 1.0.0-beta.3 + * Version: 1.0.0-rc.1 * Author: WordPress Performance Group * Author URI: https://make.wordpress.org/core/tag/performance/ * License: GPLv2 or later diff --git a/modules/images/webp-uploads/load.php b/modules/images/webp-uploads/load.php index 60ca40ed6b..8a6773e379 100644 --- a/modules/images/webp-uploads/load.php +++ b/modules/images/webp-uploads/load.php @@ -689,7 +689,7 @@ function webp_uploads_update_rest_attachment( WP_REST_Response $response, WP_Pos * of an edit to an attachment either restore or other type of edit, in that case we perform operations * to save the sources properties, specifically for the `full` size image due this is a virtual image size. * - * @since n.e.x.t + * @since 1.0.0 * * @see wp_update_attachment_metadata() * @@ -725,7 +725,7 @@ function webp_uploads_update_attachment_metadata( $data, $attachment_id ) { * been updated. It removes the current sources property due once this function is executed * right after an edit has taken place and the current sources are no longer accurate. * - * @since n.e.x.t + * @since 1.0.0 * * @param int $attachment_id The ID representing the attachment. * @param array $data The current metadata of the attachment. @@ -782,7 +782,7 @@ function webp_uploads_backup_sources( $attachment_id, $data ) { * Stores the provided sources for the attachment ID in the `_wp_attachment_backup_sources` with * the next available target if target is `null` no source would be stored. * - * @since n.e.x.t + * @since 1.0.0 * * @param int $attachment_id The ID of the attachment. * @param array $sources An array with the full sources to be stored on the next available key. @@ -809,7 +809,7 @@ function webp_uploads_backup_full_image_sources( $attachment_id, $sources ) { * has not been used as part of the backup sources it would be used if no size is * found or backup exists `null` would be returned instead. * - * @since n.e.x.t + * @since 1.0.0 * * @param int $attachment_id The ID of the attachment. * @return null|string The next available full size name. @@ -846,7 +846,7 @@ function webp_uploads_get_next_full_size_key_from_backup( $attachment_id ) { * the top level `sources` into the metadata, in order to ensure the restore process has a reference to the right * images. * - * @since n.e.x.t + * @since 1.0.0 * * @param int $attachment_id The ID of the attachment. * @param array $data The current metadata to be stored in the attachment. diff --git a/readme.txt b/readme.txt index a0ba33aa01..66e7e13b8b 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg Requires at least: 5.8 Tested up to: 5.9 Requires PHP: 5.6 -Stable tag: 1.0.0-beta.3 +Stable tag: 1.0.0-rc.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, images, javascript, site health, measurement, object caching diff --git a/tests/testdata/modules/images/webp-uploads/class-wp-image-edit.php b/tests/testdata/modules/images/webp-uploads/class-wp-image-edit.php index b3591b0cf0..44d448fda6 100644 --- a/tests/testdata/modules/images/webp-uploads/class-wp-image-edit.php +++ b/tests/testdata/modules/images/webp-uploads/class-wp-image-edit.php @@ -10,7 +10,7 @@ * Class WP_Image_Edit to handle the image edits that take place from the image editor * from within the admin dashboard to remove complexity around changes for an image. * - * @since n.e.x.t + * @since 1.0.0 */ class WP_Image_Edit { protected $changes = array(); From 6a14121938d6c998cd8940f03b148dc691e6a756 Mon Sep 17 00:00:00 2001 From: Crisoforo Gaspar Date: Mon, 4 Apr 2022 10:56:41 -0500 Subject: [PATCH 2/3] Update list of translations --- module-i18n.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module-i18n.php b/module-i18n.php index e835050a71..51b67c7e90 100644 --- a/module-i18n.php +++ b/module-i18n.php @@ -7,9 +7,9 @@ _x( 'Adds a persistent object cache check for sites with non-trivial amounts of data in Site Health status.', 'module description', 'performance-lab' ), _x( 'Audit Autoloaded Options', 'module name', 'performance-lab' ), _x( 'Adds a check for autoloaded options in Site Health status.', 'module description', 'performance-lab' ), - _x( 'Audit Enqueued Assets', 'module name', 'performance-lab' ), - _x( 'Adds a CSS and JS resource check in Site Health status.', 'module description', 'performance-lab' ), _x( 'WebP Support', 'module name', 'performance-lab' ), _x( 'Adds a WebP support check in Site Health status.', 'module description', 'performance-lab' ), + _x( 'Audit Enqueued Assets', 'module name', 'performance-lab' ), + _x( 'Adds a CSS and JS resource check in Site Health status.', 'module description', 'performance-lab' ), ); /* THIS IS THE END OF THE GENERATED FILE */ From fd2ef81dd339702681ef76e33b224d330ee99343 Mon Sep 17 00:00:00 2001 From: Crisoforo Gaspar Date: Mon, 4 Apr 2022 10:59:06 -0500 Subject: [PATCH 3/3] Update changelog entries for the readme file --- readme.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 66e7e13b8b..05ecca56dc 100644 --- a/readme.txt +++ b/readme.txt @@ -18,10 +18,10 @@ The Performance Lab plugin is a collection of modules focused on enhancing perfo Currently the plugin includes the following performance modules: * **WebP Uploads:** Creates WebP versions for new JPEG image uploads if supported by the server. -* **WebP Support:** Adds a WebP support check in Site Health status. * **Persistent Object Cache Health Check:** Adds a persistent object cache check for sites with non-trivial amounts of data in Site Health status. -* **Audit Enqueued Assets:** Adds a CSS and JS resource check in Site Health status. * **Audit Autoloaded Options:** Adds a check for autoloaded options in Site Health status. +* **Audit Enqueued Assets:** Adds a CSS and JS resource check in Site Health status. +* **WebP Support:** Adds a WebP support check in Site Health status. == Installation == @@ -66,6 +66,18 @@ Contributions welcome! There are several ways to contribute: == Changelog == += 1.0.0-rc.1 = + +**Enhancements** + +* Images: Change expected order of items in the `webp_uploads_content_image_mimes` filter. ([250](https://github.com/WordPress/performance/pull/250)) +* Images: Replace images in frontend content without using an additional regular expression. ([262](https://github.com/WordPress/performance/pull/262)) +* Images: Restore and backup image sizes alongside the sources properties. ([242](https://github.com/WordPress/performance/pull/242)) + +**Bug Fixes** + +* Images: Select image editor based on WebP support instead of always using the default one. ([259](https://github.com/WordPress/performance/pull/259)) + = 1.0.0-beta.3 = **Bug Fixes**