From 9731a3418354054e33832f10ea069cf7f57a907e Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Mon, 16 May 2022 09:17:25 -0700 Subject: [PATCH 1/5] Update version number to 1.1.0 and tested up to WP version to 6.0. --- load.php | 4 ++-- readme.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/load.php b/load.php index 0550685479..fa42a899ea 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 + * Version: 1.1.0 * Author: WordPress Performance Group * Author URI: https://make.wordpress.org/core/tag/performance/ * License: GPLv2 or later @@ -15,7 +15,7 @@ * @package performance-lab */ -define( 'PERFLAB_VERSION', '1.0.0' ); +define( 'PERFLAB_VERSION', '1.1.0' ); define( 'PERFLAB_MAIN_FILE', __FILE__ ); define( 'PERFLAB_MODULES_SETTING', 'perflab_modules_settings' ); define( 'PERFLAB_MODULES_SCREEN', 'perflab-modules' ); diff --git a/readme.txt b/readme.txt index b0383a89cf..5a39864b3e 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: wordpressdotorg Requires at least: 5.8 -Tested up to: 5.9 +Tested up to: 6.0 Requires PHP: 5.6 -Stable tag: 1.0.0 +Stable tag: 1.1.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 87d2214f2972d157a5b5f1f6039936ebffe14e30 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Mon, 16 May 2022 09:18:21 -0700 Subject: [PATCH 2/5] Update since tags for version 1.1.0. --- load.php | 4 ++-- modules/images/webp-uploads/helper.php | 2 +- modules/images/webp-uploads/load.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/load.php b/load.php index fa42a899ea..d059db8b4a 100644 --- a/load.php +++ b/load.php @@ -142,7 +142,7 @@ function( $module_settings ) { * * This attribute is then used in {@see perflab_render_generator()}. * - * @since n.e.x.t + * @since 1.1.0 */ function perflab_get_generator_content() { $active_modules = perflab_get_active_modules(); @@ -159,7 +159,7 @@ function perflab_get_generator_content() { * * See {@see 'wp_head'}. * - * @since n.e.x.t + * @since 1.1.0 */ function perflab_render_generator() { $content = perflab_get_generator_content(); diff --git a/modules/images/webp-uploads/helper.php b/modules/images/webp-uploads/helper.php index d5f6adb6e7..3f0aecbb68 100644 --- a/modules/images/webp-uploads/helper.php +++ b/modules/images/webp-uploads/helper.php @@ -74,7 +74,7 @@ function webp_uploads_generate_additional_image_source( $attachment_id, $image_s * * Returning an image data array or WP_Error here effectively short-circuits the default logic to generate the image source. * - * @since n.e.x.t + * @since 1.1.0 * * @param array|null|WP_Error $image Image data {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string} or null or WP_Error. * @param int $attachment_id The ID of the attachment from where this image would be created. diff --git a/modules/images/webp-uploads/load.php b/modules/images/webp-uploads/load.php index a24811a065..8a2b9c409d 100644 --- a/modules/images/webp-uploads/load.php +++ b/modules/images/webp-uploads/load.php @@ -493,7 +493,7 @@ function webp_uploads_img_tag_update_mime_type( $image, $context, $attachment_id * * Altering the $image tag through this filter effectively short-circuits the default replacement logic using the preferred MIME type. * - * @since n.e.x.t + * @since 1.1.0 * * @param string $image An tag where the urls would be updated. * @param int $attachment_id The ID of the attachment being modified. @@ -562,7 +562,7 @@ function webp_uploads_img_tag_update_mime_type( $image, $context, $attachment_id * Updates the references of the featured image to the a new image format if available, in the same way it * occurs in the_content of a post. * - * @since n.e.x.t + * @since 1.1.0 * * @param string $html The current HTML markup of the featured image. * @param int $post_id The current post ID where the featured image is requested. From 3b91eab5341d82ba53595d74ab1c42a2b016aead Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Mon, 16 May 2022 09:20:20 -0700 Subject: [PATCH 3/5] Refresh default enabled modules. --- default-enabled-modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default-enabled-modules.php b/default-enabled-modules.php index fb2e6094a7..51bcf892f1 100644 --- a/default-enabled-modules.php +++ b/default-enabled-modules.php @@ -2,7 +2,7 @@ /* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */ return array( 'images/webp-uploads', - 'object-cache/persistent-object-cache-health-check', 'site-health/webp-support', + 'object-cache/persistent-object-cache-health-check', ); /* THIS IS THE END OF THE GENERATED FILE */ From 04a1e5df11bbc1c97185ab09423d30e98cea1aff Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Mon, 16 May 2022 09:25:35 -0700 Subject: [PATCH 4/5] Refresh translations. --- module-i18n.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module-i18n.php b/module-i18n.php index 51b67c7e90..50b7eab78b 100644 --- a/module-i18n.php +++ b/module-i18n.php @@ -3,13 +3,13 @@ $generated_i18n_strings = array( _x( 'WebP Uploads', 'module name', 'performance-lab' ), _x( 'Creates WebP versions for new JPEG image uploads if supported by the server.', 'module description', 'performance-lab' ), - _x( 'Persistent Object Cache Health Check', 'module name', 'performance-lab' ), - _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( 'WebP Support', 'module name', 'performance-lab' ), _x( 'Adds a WebP support check 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( 'Persistent Object Cache Health Check', 'module name', 'performance-lab' ), + _x( 'Adds a persistent object cache check for sites with non-trivial amounts of data in Site Health status.', 'module description', 'performance-lab' ), ); /* THIS IS THE END OF THE GENERATED FILE */ From ae290fb8e5e0982c2ff3431583fa4a3f1ddd190a Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Mon, 16 May 2022 09:28:40 -0700 Subject: [PATCH 5/5] Update readme with 1.1.0 changelog. --- readme.txt | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 5a39864b3e..b5314b5390 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. -* **Persistent Object Cache Health Check:** Adds a persistent object cache check for sites with non-trivial amounts of data in Site Health status. +* **WebP Support:** Adds a WebP support 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. +* **Persistent Object Cache Health Check:** Adds a persistent object cache check for sites with non-trivial amounts of data in Site Health status. == Installation == @@ -66,6 +66,26 @@ Contributions welcome! There are several ways to contribute: == Changelog == += 1.1.0 = + +**Features** + +* Infrastructure: Add Performance Lab generator meta tag to `wp_head` output. ([322](https://github.com/WordPress/performance/pull/322)) + +**Enhancements** + +* Images: Introduce filter `webp_uploads_pre_generate_additional_image_source` to short-circuit generating additional image sources on upload. ([318](https://github.com/WordPress/performance/pull/318)) +* Images: Introduce filter `webp_uploads_pre_replace_additional_image_source` to short-circuit replacing additional image sources in frontend content. ([319](https://github.com/WordPress/performance/pull/319)) +* Images: Refine logic to select smaller image file in the frontend based on `webp_uploads_prefer_smaller_image_file` filter. ([302](https://github.com/WordPress/performance/pull/302)) +* Images: Replace the featured image with WebP version when available. ([316](https://github.com/WordPress/performance/pull/316)) +* Site Health: Update Site Health Autoloaded options documentation link. ([313](https://github.com/WordPress/performance/pull/313)) +* Infrastructure: Avoid unnecessarily early escape of Site Health check labels. ([332](https://github.com/WordPress/performance/pull/332)) + +**Bug Fixes** + +* Object Cache: Correct label for persistent object cache Site Health check. ([329](https://github.com/WordPress/performance/pull/329)) +* Images: Only update the specified target images when an image is edited. ([301](https://github.com/WordPress/performance/pull/301)) + = 1.0.0 = **Features**