From f8fc4e788d5e9b8a8500ca1d9fa4b4045e15f95e Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 5 Jun 2024 14:21:43 -0700 Subject: [PATCH 1/7] Update versions --- plugins/dominant-color-images/load.php | 4 ++-- plugins/dominant-color-images/readme.txt | 4 +++- plugins/performance-lab/load.php | 5 ++--- plugins/performance-lab/readme.txt | 2 +- plugins/speculation-rules/load.php | 4 ++-- plugins/speculation-rules/readme.txt | 4 +++- plugins/webp-uploads/load.php | 4 ++-- 7 files changed, 15 insertions(+), 12 deletions(-) diff --git a/plugins/dominant-color-images/load.php b/plugins/dominant-color-images/load.php index 1ca1c86ce7..48a2b090a8 100644 --- a/plugins/dominant-color-images/load.php +++ b/plugins/dominant-color-images/load.php @@ -5,7 +5,7 @@ * Description: Displays placeholders based on an image's dominant color while the image is loading. * Requires at least: 6.4 * Requires PHP: 7.2 - * Version: 1.1.1 + * Version: 1.1.2 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -25,7 +25,7 @@ return; } -define( 'DOMINANT_COLOR_IMAGES_VERSION', '1.1.1' ); +define( 'DOMINANT_COLOR_IMAGES_VERSION', '1.1.2' ); require_once __DIR__ . '/helper.php'; require_once __DIR__ . '/hooks.php'; diff --git a/plugins/dominant-color-images/readme.txt b/plugins/dominant-color-images/readme.txt index 15e262ee7f..4e48c7b89e 100644 --- a/plugins/dominant-color-images/readme.txt +++ b/plugins/dominant-color-images/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg Requires at least: 6.4 Tested up to: 6.5 Requires PHP: 7.2 -Stable tag: 1.1.1 +Stable tag: 1.1.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, images, dominant color @@ -49,6 +49,8 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == += 1.1.2 = + = 1.1.1 = **Enhancements** diff --git a/plugins/performance-lab/load.php b/plugins/performance-lab/load.php index e202e2729e..9b3eea02e0 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.4 * Requires PHP: 7.2 - * Version: 3.1.0 + * Version: 3.2.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', '3.1.0' ); +define( 'PERFLAB_VERSION', '3.2.0' ); define( 'PERFLAB_MAIN_FILE', __FILE__ ); define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) ); define( 'PERFLAB_SCREEN', 'performance-lab' ); @@ -108,7 +108,6 @@ function perflab_get_standalone_plugin_data(): array { 'constant' => 'IMAGE_PRIORITIZER_VERSION', 'experimental' => true, ), - // TODO: Add image loading optimization plugin, dependent of Optimization Detective, once ready for end users. 'performant-translations' => array( 'constant' => 'PERFORMANT_TRANSLATIONS_VERSION', ), diff --git a/plugins/performance-lab/readme.txt b/plugins/performance-lab/readme.txt index 5ca19473bc..4fe3ff2138 100644 --- a/plugins/performance-lab/readme.txt +++ b/plugins/performance-lab/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg Requires at least: 6.4 Tested up to: 6.5 Requires PHP: 7.2 -Stable tag: 3.1.0 +Stable tag: 3.2.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, site health, measurement, optimization, diagnostics diff --git a/plugins/speculation-rules/load.php b/plugins/speculation-rules/load.php index 91cf17da90..5b0192d003 100644 --- a/plugins/speculation-rules/load.php +++ b/plugins/speculation-rules/load.php @@ -5,7 +5,7 @@ * Description: Enables browsers to speculatively prerender or prefetch pages when hovering over links. * Requires at least: 6.4 * Requires PHP: 7.2 - * Version: 1.3.1-alpha + * Version: 1.3.1 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -65,7 +65,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi } )( 'plsr_pending_plugin_info', - '1.3.1-alpha', + '1.3.1', static function ( string $version ): void { // Define the constant. diff --git a/plugins/speculation-rules/readme.txt b/plugins/speculation-rules/readme.txt index dfbdf2b703..10f1173d19 100644 --- a/plugins/speculation-rules/readme.txt +++ b/plugins/speculation-rules/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg Requires at least: 6.4 Tested up to: 6.5 Requires PHP: 7.2 -Stable tag: 1.3.0 +Stable tag: 1.3.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, javascript, speculation rules, prerender, prefetch @@ -114,6 +114,8 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == += 1.3.1 = + = 1.3.0 = **Enhancements** diff --git a/plugins/webp-uploads/load.php b/plugins/webp-uploads/load.php index 595903fa60..c9188c3b6e 100644 --- a/plugins/webp-uploads/load.php +++ b/plugins/webp-uploads/load.php @@ -5,7 +5,7 @@ * Description: Converts images to more modern formats such as WebP or AVIF during upload. * Requires at least: 6.4 * Requires PHP: 7.2 - * Version: 1.1.1 + * Version: 2.0.0 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -25,7 +25,7 @@ return; } -define( 'WEBP_UPLOADS_VERSION', '1.1.1' ); +define( 'WEBP_UPLOADS_VERSION', '2.0.0' ); define( 'WEBP_UPLOADS_MAIN_FILE', plugin_basename( __FILE__ ) ); require_once __DIR__ . '/helper.php'; From 965a2f119ebd52e08173a3b8fc56bd512d059f17 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 5 Jun 2024 14:27:08 -0700 Subject: [PATCH 2/7] Update readmes --- plugins/dominant-color-images/readme.txt | 4 ++++ plugins/performance-lab/readme.txt | 10 ++++++++++ plugins/speculation-rules/readme.txt | 4 ++++ plugins/webp-uploads/readme.txt | 11 ++++++++++- 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/plugins/dominant-color-images/readme.txt b/plugins/dominant-color-images/readme.txt index 4e48c7b89e..c5cb0de787 100644 --- a/plugins/dominant-color-images/readme.txt +++ b/plugins/dominant-color-images/readme.txt @@ -51,6 +51,10 @@ Contributions are always welcome! Learn more about how to get involved in the [C = 1.1.2 = +**Bug Fixes** + +* Re-remove unneeded phpcs:ignore. ([1231](https://github.com/WordPress/performance/pull/1231)) + = 1.1.1 = **Enhancements** diff --git a/plugins/performance-lab/readme.txt b/plugins/performance-lab/readme.txt index 4fe3ff2138..3ec15ce3a9 100644 --- a/plugins/performance-lab/readme.txt +++ b/plugins/performance-lab/readme.txt @@ -62,6 +62,16 @@ Contributions are always welcome! Learn more about how to get involved in the [C = 3.2.0 = +**Enhancements** + +* Add install note after each PerfLab feature plugin in the plugin list table. ([1265](https://github.com/WordPress/performance/pull/1265)) +* Update plugins with new banners and icons. ([1272](https://github.com/WordPress/performance/pull/1272)) + +**Bug Fixes** + +* Fix Server-Timing compatibility with other plugins that do output buffering. ([1260](https://github.com/WordPress/performance/pull/1260)) +* Harden autoloaded-options site health test for mis-implemented external object cache plugins. ([1238](https://github.com/WordPress/performance/pull/1238)) + = 3.1.0 = **Enhancements** diff --git a/plugins/speculation-rules/readme.txt b/plugins/speculation-rules/readme.txt index 10f1173d19..9383c68b26 100644 --- a/plugins/speculation-rules/readme.txt +++ b/plugins/speculation-rules/readme.txt @@ -116,6 +116,10 @@ Contributions are always welcome! Learn more about how to get involved in the [C = 1.3.1 = +**Bug Fixes** + +* Check if rel contains nofollow instead of being just nofollow when excluding speculative loading. ([1232](https://github.com/WordPress/performance/pull/1232)) + = 1.3.0 = **Enhancements** diff --git a/plugins/webp-uploads/readme.txt b/plugins/webp-uploads/readme.txt index 80b70a6437..5377635b38 100644 --- a/plugins/webp-uploads/readme.txt +++ b/plugins/webp-uploads/readme.txt @@ -63,8 +63,17 @@ By default, the Modern Image Formats plugin will only generate WebP versions of == Changelog == = 2.0.0 = + +**Features** + * Add AVIF image format support. Add setting for output image format to choose between WebP and AVIF. ([1176](https://github.com/WordPress/performance/pull/1176)) +**Enhancements** + +* Add `picture` element support. ([73](https://github.com/WordPress/performance/pull/73)) +* Improve Settings->Media controls for Modern Image Formats. ([1273](https://github.com/WordPress/performance/pull/1273)) +* Remove obsolete fallback script now that picture element is supported. ([1269](https://github.com/WordPress/performance/pull/1269)) + = 1.1.1 = **Enhancements** @@ -114,4 +123,4 @@ By default, the Modern Image Formats plugin will only generate WebP versions of = 2.0.0 = -This release adds support for AVIF images and enables selecting the the output image format to choose between WebP and AVIF when both are available. AVIF is used as the default when the server supports it. \ No newline at end of file +This release adds support for AVIF images and enables selecting the the output image format to choose between WebP and AVIF when both are available. AVIF is used as the default when the server supports it. From f6ad76e478a9600fcfe9fbf2f7d20c66bc224fd6 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 5 Jun 2024 14:29:37 -0700 Subject: [PATCH 3/7] Update since versions --- plugins/performance-lab/includes/admin/load.php | 2 +- .../server-timing/class-perflab-server-timing.php | 4 ++-- plugins/webp-uploads/helper.php | 12 ++++++------ plugins/webp-uploads/picture-element.php | 6 +++--- plugins/webp-uploads/settings.php | 8 ++++---- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/plugins/performance-lab/includes/admin/load.php b/plugins/performance-lab/includes/admin/load.php index 39467c5410..1ba31613f7 100644 --- a/plugins/performance-lab/includes/admin/load.php +++ b/plugins/performance-lab/includes/admin/load.php @@ -475,7 +475,7 @@ function perflab_get_plugin_settings_url( string $plugin_slug ): ?string { /** * Prints the Performance Lab install notice after each feature plugin's row meta. * - * @since n.e.x.t + * @since 3.2.0 * * @param string $plugin_file Plugin file. */ diff --git a/plugins/performance-lab/includes/server-timing/class-perflab-server-timing.php b/plugins/performance-lab/includes/server-timing/class-perflab-server-timing.php index 15661c5af6..987546099a 100644 --- a/plugins/performance-lab/includes/server-timing/class-perflab-server-timing.php +++ b/plugins/performance-lab/includes/server-timing/class-perflab-server-timing.php @@ -234,7 +234,7 @@ public function use_output_buffer(): bool { * assured that other plugins' output buffer callbacks will run before the Server-Timing one that sends the * Server-Timing header. * - * @since n.e.x.t + * @since 3.2.0 */ public function add_hooks(): void { if ( $this->use_output_buffer() ) { @@ -264,7 +264,7 @@ public function on_template_include( $passthrough = null ) { /** * Starts output buffering to send the Server-Timing header right before returning the buffer. * - * @since n.e.x.t + * @since 3.2.0 */ public function start_output_buffer(): void { ob_start( diff --git a/plugins/webp-uploads/helper.php b/plugins/webp-uploads/helper.php index 5c4e0611e2..0b164d7060 100644 --- a/plugins/webp-uploads/helper.php +++ b/plugins/webp-uploads/helper.php @@ -16,7 +16,7 @@ * for example an image/jpeg can be converted into an image/webp. * * @since 1.0.0 - * @since n.e.x.t Added support for AVIF. + * @since 2.0.0 Added support for AVIF. * * @return array> An array of valid mime types, where the key is the mime type and the value is the extension type. */ @@ -334,7 +334,7 @@ function webp_uploads_should_discard_additional_image_file( array $original, arr * * Includes special handling for false positives on AVIF support. * - * @since n.e.x.t + * @since 2.0.0 * * @param string $mime_type The mime type to check. * @return bool Whether the server supports a given mime type. @@ -364,7 +364,7 @@ function webp_uploads_mime_type_supported( string $mime_type ): bool { /** * Get the image output format setting from the option. Default is avif. * - * @since n.e.x.t + * @since 2.0.0 * * @return string The image output format. One of 'webp' or 'avif'. */ @@ -376,7 +376,7 @@ function webp_uploads_get_image_output_format(): string { /** * Sanitizes the image format. * - * @since n.e.x.t + * @since 2.0.0 * * @param string $image_format The image format to check. * @return string Supported image format. @@ -388,7 +388,7 @@ function webp_uploads_sanitize_image_format( string $image_format ): string { /** * Checks if the `webp_uploads_use_picture_element` option is enabled. * - * @since n.e.x.t + * @since 2.0.0 * * @return bool True if the option is enabled, false otherwise. */ @@ -399,7 +399,7 @@ function webp_uploads_is_picture_element_enabled(): bool { /** * Checks if the `perflab_generate_webp_and_jpeg` option is enabled. * - * @since n.e.x.t + * @since 2.0.0 * * @return bool True if the option is enabled, false otherwise. */ diff --git a/plugins/webp-uploads/picture-element.php b/plugins/webp-uploads/picture-element.php index 4a7843c7f2..459385f2b9 100644 --- a/plugins/webp-uploads/picture-element.php +++ b/plugins/webp-uploads/picture-element.php @@ -4,13 +4,13 @@ * * @package webp-uploads * - * @since n.e.x.t + * @since 2.0.0 */ /** * Potentially wrap an image tag in a picture element. * - * @since n.e.x.t + * @since 2.0.0 * * @param string $image The image tag. * @param string $context The context for the image tag. @@ -49,7 +49,7 @@ function webp_uploads_wrap_image_in_picture( string $image, string $context, int * The mime types will output in the picture element in the order they are provided. * The original image will be used as the fallback image for browsers that don't support the picture element. * - * @since n.e.x.t + * @since 2.0.0 * @param string[] $mime_types Mime types than can be used. * @param int $attachment_id The id of the image being evaluated. */ diff --git a/plugins/webp-uploads/settings.php b/plugins/webp-uploads/settings.php index 92a32ab8ee..94b03663ec 100644 --- a/plugins/webp-uploads/settings.php +++ b/plugins/webp-uploads/settings.php @@ -15,9 +15,9 @@ * Registers setting for generating JPEG in addition to the selected modern format for image uploads. * * @since 1.0.0 - * @since n.e.x.t The setting was made more general to cover outputting JPEG as a secondary type. The "webp" option naming + * @since 2.0.0 The setting was made more general to cover outputting JPEG as a secondary type. The "webp" option naming * was left unchanged for backward compatibility. - * @since n.e.x.t The `perflab_modern_image_format` was added to enable selecting an output format. + * @since 2.0.0 The `perflab_modern_image_format` was added to enable selecting an output format. * Currently includes AVIF and WebP. */ function webp_uploads_register_media_settings_field(): void { @@ -112,7 +112,7 @@ function webp_uploads_add_media_settings_fields(): void { /** * Renders the settings field for the 'perflab_modern_image_format' setting. * - * @since n.e.x.t + * @since 2.0.0 */ function webp_uploads_generate_avif_webp_setting_callback(): void { @@ -193,7 +193,7 @@ function webp_uploads_generate_webp_jpeg_setting_callback(): void { /** * Renders the settings field for the 'webp_uploads_use_picture_element' setting. * - * @since n.e.x.t + * @since 2.0.0 */ function webp_uploads_use_picture_element_callback(): void { // Picture element support requires the JPEG output to be enabled. From 5ef01bf97095021640805bdadf0d310f02a16bd3 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 5 Jun 2024 14:39:05 -0700 Subject: [PATCH 4/7] Fix spelling of word to appease Spell Check --- plugins/performance-lab/readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/performance-lab/readme.txt b/plugins/performance-lab/readme.txt index 3ec15ce3a9..4fbfa52ca5 100644 --- a/plugins/performance-lab/readme.txt +++ b/plugins/performance-lab/readme.txt @@ -70,7 +70,7 @@ Contributions are always welcome! Learn more about how to get involved in the [C **Bug Fixes** * Fix Server-Timing compatibility with other plugins that do output buffering. ([1260](https://github.com/WordPress/performance/pull/1260)) -* Harden autoloaded-options site health test for mis-implemented external object cache plugins. ([1238](https://github.com/WordPress/performance/pull/1238)) +* Harden autoloaded-options site health test for incorrectly implemented external object cache plugins. ([1238](https://github.com/WordPress/performance/pull/1238)) = 3.1.0 = From 701c1c7c9822f59aa321d3e40e8ad879c5d6d1b8 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 6 Jun 2024 09:14:07 -0700 Subject: [PATCH 5/7] Revert version bumps for dominant-color-images Co-authored-by: Pascal Birchler --- plugins/dominant-color-images/load.php | 4 ++-- plugins/dominant-color-images/readme.txt | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/plugins/dominant-color-images/load.php b/plugins/dominant-color-images/load.php index 48a2b090a8..1ca1c86ce7 100644 --- a/plugins/dominant-color-images/load.php +++ b/plugins/dominant-color-images/load.php @@ -5,7 +5,7 @@ * Description: Displays placeholders based on an image's dominant color while the image is loading. * Requires at least: 6.4 * Requires PHP: 7.2 - * Version: 1.1.2 + * Version: 1.1.1 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -25,7 +25,7 @@ return; } -define( 'DOMINANT_COLOR_IMAGES_VERSION', '1.1.2' ); +define( 'DOMINANT_COLOR_IMAGES_VERSION', '1.1.1' ); require_once __DIR__ . '/helper.php'; require_once __DIR__ . '/hooks.php'; diff --git a/plugins/dominant-color-images/readme.txt b/plugins/dominant-color-images/readme.txt index c5cb0de787..15e262ee7f 100644 --- a/plugins/dominant-color-images/readme.txt +++ b/plugins/dominant-color-images/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg Requires at least: 6.4 Tested up to: 6.5 Requires PHP: 7.2 -Stable tag: 1.1.2 +Stable tag: 1.1.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, images, dominant color @@ -49,12 +49,6 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == -= 1.1.2 = - -**Bug Fixes** - -* Re-remove unneeded phpcs:ignore. ([1231](https://github.com/WordPress/performance/pull/1231)) - = 1.1.1 = **Enhancements** From aedc86897e42d330af967d9075c15b499e0c1bd9 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 6 Jun 2024 09:18:46 -0700 Subject: [PATCH 6/7] Combine since tags Co-authored-by: mukeshpanchal27 --- plugins/webp-uploads/settings.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/webp-uploads/settings.php b/plugins/webp-uploads/settings.php index 94b03663ec..2bfe0140d8 100644 --- a/plugins/webp-uploads/settings.php +++ b/plugins/webp-uploads/settings.php @@ -16,9 +16,8 @@ * * @since 1.0.0 * @since 2.0.0 The setting was made more general to cover outputting JPEG as a secondary type. The "webp" option naming - * was left unchanged for backward compatibility. - * @since 2.0.0 The `perflab_modern_image_format` was added to enable selecting an output format. - * Currently includes AVIF and WebP. + * was left unchanged for backward compatibility. Also, the `perflab_modern_image_format` was added to + * enable selecting an output format. Currently includes AVIF and WebP. */ function webp_uploads_register_media_settings_field(): void { register_setting( From 4529501dcd8b459dda68e3aa2e125f249ee5d310 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 6 Jun 2024 09:20:18 -0700 Subject: [PATCH 7/7] Move changelog entry to features section Co-authored-by: adamsilverstein --- plugins/webp-uploads/readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webp-uploads/readme.txt b/plugins/webp-uploads/readme.txt index 5377635b38..51da7960ac 100644 --- a/plugins/webp-uploads/readme.txt +++ b/plugins/webp-uploads/readme.txt @@ -66,11 +66,11 @@ By default, the Modern Image Formats plugin will only generate WebP versions of **Features** +* Add `picture` element support. ([73](https://github.com/WordPress/performance/pull/73)) * Add AVIF image format support. Add setting for output image format to choose between WebP and AVIF. ([1176](https://github.com/WordPress/performance/pull/1176)) **Enhancements** -* Add `picture` element support. ([73](https://github.com/WordPress/performance/pull/73)) * Improve Settings->Media controls for Modern Image Formats. ([1273](https://github.com/WordPress/performance/pull/1273)) * Remove obsolete fallback script now that picture element is supported. ([1269](https://github.com/WordPress/performance/pull/1269))