From 53a22bcc2dfa4e356d4c739e2f6591e3dd55b8d6 Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Wed, 28 Feb 2024 14:02:26 +0530 Subject: [PATCH 01/14] Add upgrade notice --- readme.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.txt b/readme.txt index 931660bf2e..c3413e78ef 100644 --- a/readme.txt +++ b/readme.txt @@ -466,6 +466,10 @@ By default, the WebP Uploads module will only generate WebP versions of the imag == Upgrade Notice == += 3.0.0 = + +The WebP Uploads and Dominant Color Images modules will no longer be available starting with this release; instead, they'll be standalone plugins. If you're using these features, please migrate to the standalone plugins before updating. + = 2.5.0 = The SQLite module is no longer present starting with this release. If you still use it, please migrate to the standalone plugin before updating. From 68f8bfe3f7d5a9a6210e6e112e3944a8148aee9d Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Wed, 28 Feb 2024 16:07:16 +0530 Subject: [PATCH 02/14] Apply suggestions from code review Co-authored-by: Pascal Birchler --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index c3413e78ef..ba5684eb21 100644 --- a/readme.txt +++ b/readme.txt @@ -468,7 +468,7 @@ By default, the WebP Uploads module will only generate WebP versions of the imag = 3.0.0 = -The WebP Uploads and Dominant Color Images modules will no longer be available starting with this release; instead, they'll be standalone plugins. If you're using these features, please migrate to the standalone plugins before updating. +Starting with this release, modules such as Dominant Color Images and WebP Uploads will be available as standalone plugins. After updating, you will be able to easily migrate to this new structure. = 2.5.0 = From 46434d905deb6b02befa91525f75568bc4325fc5 Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Thu, 29 Feb 2024 09:14:38 +0530 Subject: [PATCH 03/14] Apply suggestions from code review Co-authored-by: Weston Ruter --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index ba5684eb21..295ca1601a 100644 --- a/readme.txt +++ b/readme.txt @@ -468,7 +468,7 @@ By default, the WebP Uploads module will only generate WebP versions of the imag = 3.0.0 = -Starting with this release, modules such as Dominant Color Images and WebP Uploads will be available as standalone plugins. After updating, you will be able to easily migrate to this new structure. +Starting with this release, modules such as Dominant Color Images and WebP Uploads 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 e2cf51cc0331e03f3034ff5930cdc054d43d72c1 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Tue, 5 Mar 2024 10:58:13 -0800 Subject: [PATCH 04/14] Update plugins tested up to WP version to 6.5. --- plugins/auto-sizes/auto-sizes.php | 4 ++-- plugins/auto-sizes/readme.txt | 8 ++++++-- plugins/dominant-color-images/load.php | 4 ++-- plugins/dominant-color-images/readme.txt | 8 ++++++-- plugins/speculation-rules/readme.txt | 3 ++- plugins/webp-uploads/load.php | 4 ++-- plugins/webp-uploads/readme.txt | 8 ++++++-- readme.txt | 2 +- 8 files changed, 27 insertions(+), 14 deletions(-) diff --git a/plugins/auto-sizes/auto-sizes.php b/plugins/auto-sizes/auto-sizes.php index 60208dc7aa..bdafaec792 100644 --- a/plugins/auto-sizes/auto-sizes.php +++ b/plugins/auto-sizes/auto-sizes.php @@ -5,7 +5,7 @@ * Description: This plugin implements the HTML spec for adding `sizes="auto"` to lazy-loaded images. * Requires at least: 6.3 * Requires PHP: 7.0 - * Version: 1.0.0 + * Version: 1.0.1 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -25,6 +25,6 @@ return; } -define( 'IMAGE_AUTO_SIZES_VERSION', '1.0.0' ); +define( 'IMAGE_AUTO_SIZES_VERSION', '1.0.1' ); require_once __DIR__ . '/hooks.php'; diff --git a/plugins/auto-sizes/readme.txt b/plugins/auto-sizes/readme.txt index 27ef356b06..97c16bef64 100644 --- a/plugins/auto-sizes/readme.txt +++ b/plugins/auto-sizes/readme.txt @@ -2,9 +2,9 @@ Contributors: wordpressdotorg Requires at least: 6.4 -Tested up to: 6.4 +Tested up to: 6.5 Requires PHP: 7.0 -Stable tag: 1.0.0 +Stable tag: 1.0.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, images, auto-sizes @@ -48,6 +48,10 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == += 1.0.1 = + +* Update tested WordPress version to 6.5. ([1027](https://github.com/WordPress/performance/pull/1027)) + = 1.0.0 = * Initial release of the Auto-sizes for Lazy-loaded Images plugin as a standalone plugin. ([904](https://github.com/WordPress/performance/pull/904)) diff --git a/plugins/dominant-color-images/load.php b/plugins/dominant-color-images/load.php index d8919b100a..35c7359ea0 100644 --- a/plugins/dominant-color-images/load.php +++ b/plugins/dominant-color-images/load.php @@ -5,7 +5,7 @@ * Description: Adds support to store the dominant color of newly uploaded images and create a placeholder background of that color. * Requires at least: 6.3 * Requires PHP: 7.0 - * Version: 1.0.1 + * Version: 1.0.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.0.1' ); +define( 'DOMINANT_COLOR_IMAGES_VERSION', '1.0.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 a7e8a7d4bb..c1fa4bde25 100644 --- a/plugins/dominant-color-images/readme.txt +++ b/plugins/dominant-color-images/readme.txt @@ -2,9 +2,9 @@ Contributors: wordpressdotorg Requires at least: 6.3 -Tested up to: 6.3 +Tested up to: 6.5 Requires PHP: 7.0 -Stable tag: 1.0.1 +Stable tag: 1.0.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, images, dominant color @@ -47,6 +47,10 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == += 1.0.2 = + +* Update tested WordPress version to 6.5. ([1027](https://github.com/WordPress/performance/pull/1027)) + = 1.0.1 = * Exclude ".wordpress-org" directory when deploying standalone plugins. ([866](https://github.com/WordPress/performance/pull/866)) diff --git a/plugins/speculation-rules/readme.txt b/plugins/speculation-rules/readme.txt index e090000856..1abb4a0617 100644 --- a/plugins/speculation-rules/readme.txt +++ b/plugins/speculation-rules/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Requires at least: 6.3 -Tested up to: 6.4 +Tested up to: 6.5 Requires PHP: 7.0 Stable tag: 1.1.0 License: GPLv2 or later @@ -103,6 +103,7 @@ Contributions are always welcome! Learn more about how to get involved in the [C = 1.1.0 = * Allow excluding URL patterns from prerendering or prefetching specifically. ([1025](https://github.com/WordPress/performance/pull/1025)) +* Update tested WordPress version to 6.5. ([1027](https://github.com/WordPress/performance/pull/1027)) = 1.0.1 = diff --git a/plugins/webp-uploads/load.php b/plugins/webp-uploads/load.php index af01d07abf..5c6d381bfa 100644 --- a/plugins/webp-uploads/load.php +++ b/plugins/webp-uploads/load.php @@ -5,7 +5,7 @@ * Description: Creates WebP versions for new JPEG image uploads if supported by the server. * Requires at least: 6.3 * Requires PHP: 7.0 - * Version: 1.0.5 + * Version: 1.0.6 * 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.0.5' ); +define( 'WEBP_UPLOADS_VERSION', '1.0.6' ); require_once __DIR__ . '/helper.php'; require_once __DIR__ . '/rest-api.php'; diff --git a/plugins/webp-uploads/readme.txt b/plugins/webp-uploads/readme.txt index bb14cbbd22..3fce1f3fe2 100644 --- a/plugins/webp-uploads/readme.txt +++ b/plugins/webp-uploads/readme.txt @@ -2,9 +2,9 @@ Contributors: wordpressdotorg Requires at least: 6.3 -Tested up to: 6.3 +Tested up to: 6.5 Requires PHP: 7.0 -Stable tag: 1.0.5 +Stable tag: 1.0.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, images, webp @@ -58,6 +58,10 @@ By default, the WebP Uploads plugin will only generate WebP versions of the imag == Changelog == += 1.0.6 = + +* Update tested WordPress version to 6.5. ([1027](https://github.com/WordPress/performance/pull/1027)) + = 1.0.5 = * Exclude ".wordpress-org" directory when deploying standalone plugins. ([866](https://github.com/WordPress/performance/pull/866)) diff --git a/readme.txt b/readme.txt index 931660bf2e..efa101de04 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Requires at least: 6.3 -Tested up to: 6.4 +Tested up to: 6.5 Requires PHP: 7.0 Stable tag: 2.9.0 License: GPLv2 or later From 4b504b9a6602165cd6bf6b0fe9aa74fce2b564d7 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Tue, 5 Mar 2024 13:05:00 -0600 Subject: [PATCH 05/14] Add standalone plugins to the wp-env config --- .wp-env.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.wp-env.json b/.wp-env.json index 673c3bd542..af7ff84ef6 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -1,6 +1,12 @@ { "core": null, - "plugins": [ "." ], + "plugins": [ + ".", + "./plugins/auto-sizes", + "./plugins/dominant-color-images", + "./plugins/speculation-rules", + "./plugins/webp-uploads" + ], "env": { "tests": { "config": { @@ -8,4 +14,4 @@ } } } -} +} \ No newline at end of file From 9a36f7d86d01ac5e3314e1328126655341db3860 Mon Sep 17 00:00:00 2001 From: Joe McGill <801097+joemcgill@users.noreply.github.com> Date: Wed, 6 Mar 2024 21:09:09 -0600 Subject: [PATCH 06/14] Update .wp-env.json --- .wp-env.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.wp-env.json b/.wp-env.json index af7ff84ef6..ed27af30b7 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} From ee42fe3da7af32b0d2f028dc772b4e5bf6acf6d4 Mon Sep 17 00:00:00 2001 From: Valerii Vasyliev Date: Thu, 7 Mar 2024 12:09:52 +0800 Subject: [PATCH 07/14] issue #1016 - Settings link is missing from WebP Uploads plugin action links --- plugins/webp-uploads/hooks.php | 20 ++++++++++++++++++++ plugins/webp-uploads/load.php | 1 + 2 files changed, 21 insertions(+) diff --git a/plugins/webp-uploads/hooks.php b/plugins/webp-uploads/hooks.php index 1bfd3df62f..d498d9eae0 100644 --- a/plugins/webp-uploads/hooks.php +++ b/plugins/webp-uploads/hooks.php @@ -777,3 +777,23 @@ function webp_uploads_render_generator() { } } add_action( 'wp_head', 'webp_uploads_render_generator' ); + +/** + * Adds a settings link to the plugin page. + * + * @param array $links An array of plugin action links. + * @return mixed An array of plugin action links. + */ +function webp_uploads_settings_link($links) { + if ( ! \is_array( $links ) ) { + return $links; + } + $url = get_admin_url( null,'options-media.php#perflab_generate_webp_and_jpeg'); + $links[] = sprintf( + '%s', + esc_url( $url ), + esc_html__( 'Settings', 'webp-uploads' ) + ); + return $links; +} +add_filter('plugin_action_links_' . WEBP_UPLOADS_MAIN_FILE, 'webp_uploads_settings_link'); diff --git a/plugins/webp-uploads/load.php b/plugins/webp-uploads/load.php index 5c6d381bfa..919918350d 100644 --- a/plugins/webp-uploads/load.php +++ b/plugins/webp-uploads/load.php @@ -26,6 +26,7 @@ } define( 'WEBP_UPLOADS_VERSION', '1.0.6' ); +define( 'WEBP_UPLOADS_MAIN_FILE', plugin_basename( __FILE__ ) ); require_once __DIR__ . '/helper.php'; require_once __DIR__ . '/rest-api.php'; From 5a3f8f8f1a6cc445013ac8a6900914259863f2e8 Mon Sep 17 00:00:00 2001 From: Valerii Vasyliev Date: Thu, 7 Mar 2024 13:29:37 +0800 Subject: [PATCH 08/14] fixed php lint issues --- plugins/webp-uploads/hooks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/webp-uploads/hooks.php b/plugins/webp-uploads/hooks.php index d498d9eae0..5fb4d421e0 100644 --- a/plugins/webp-uploads/hooks.php +++ b/plugins/webp-uploads/hooks.php @@ -784,11 +784,11 @@ function webp_uploads_render_generator() { * @param array $links An array of plugin action links. * @return mixed An array of plugin action links. */ -function webp_uploads_settings_link($links) { +function webp_uploads_settings_link( $links ) { if ( ! \is_array( $links ) ) { return $links; } - $url = get_admin_url( null,'options-media.php#perflab_generate_webp_and_jpeg'); + $url = get_admin_url( null, 'options-media.php#perflab_generate_webp_and_jpeg' ); $links[] = sprintf( '%s', esc_url( $url ), @@ -796,4 +796,4 @@ function webp_uploads_settings_link($links) { ); return $links; } -add_filter('plugin_action_links_' . WEBP_UPLOADS_MAIN_FILE, 'webp_uploads_settings_link'); +add_filter( 'plugin_action_links_' . WEBP_UPLOADS_MAIN_FILE, 'webp_uploads_settings_link' ); From d0a3f1e77ed4e0d08bfa3f6fdfae5f3c858db70f Mon Sep 17 00:00:00 2001 From: Valerii Vasyliev Date: Thu, 7 Mar 2024 13:45:17 +0800 Subject: [PATCH 09/14] Update plugins/webp-uploads/hooks.php Co-authored-by: Weston Ruter --- plugins/webp-uploads/hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webp-uploads/hooks.php b/plugins/webp-uploads/hooks.php index 5fb4d421e0..219cbc0079 100644 --- a/plugins/webp-uploads/hooks.php +++ b/plugins/webp-uploads/hooks.php @@ -782,7 +782,7 @@ function webp_uploads_render_generator() { * Adds a settings link to the plugin page. * * @param array $links An array of plugin action links. - * @return mixed An array of plugin action links. + * @return array Plugin action links. */ function webp_uploads_settings_link( $links ) { if ( ! \is_array( $links ) ) { From ebe58145cdb4a62f2563e029c3f5aaa22c1ce6b2 Mon Sep 17 00:00:00 2001 From: Valerii Vasyliev Date: Thu, 7 Mar 2024 13:45:24 +0800 Subject: [PATCH 10/14] Update plugins/webp-uploads/hooks.php Co-authored-by: Weston Ruter --- plugins/webp-uploads/hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webp-uploads/hooks.php b/plugins/webp-uploads/hooks.php index 219cbc0079..93406d0ee4 100644 --- a/plugins/webp-uploads/hooks.php +++ b/plugins/webp-uploads/hooks.php @@ -785,7 +785,7 @@ function webp_uploads_render_generator() { * @return array Plugin action links. */ function webp_uploads_settings_link( $links ) { - if ( ! \is_array( $links ) ) { + if ( ! is_array( $links ) ) { return $links; } $url = get_admin_url( null, 'options-media.php#perflab_generate_webp_and_jpeg' ); From b4529056ab1579a0f9fef30057c065bd84b08477 Mon Sep 17 00:00:00 2001 From: Valerii Vasyliev Date: Thu, 7 Mar 2024 13:45:29 +0800 Subject: [PATCH 11/14] Update plugins/webp-uploads/hooks.php Co-authored-by: Weston Ruter --- plugins/webp-uploads/hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webp-uploads/hooks.php b/plugins/webp-uploads/hooks.php index 93406d0ee4..06f7b07f9e 100644 --- a/plugins/webp-uploads/hooks.php +++ b/plugins/webp-uploads/hooks.php @@ -779,7 +779,7 @@ function webp_uploads_render_generator() { add_action( 'wp_head', 'webp_uploads_render_generator' ); /** - * Adds a settings link to the plugin page. + * Adds a settings link to the plugin's action links. * * @param array $links An array of plugin action links. * @return array Plugin action links. From f8dd13cde663bc7f8ed7f9120fde6957af8c2df7 Mon Sep 17 00:00:00 2001 From: Valerii Vasyliev Date: Thu, 7 Mar 2024 14:29:12 +0800 Subject: [PATCH 12/14] Update plugins/webp-uploads/hooks.php Co-authored-by: Weston Ruter --- plugins/webp-uploads/hooks.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/webp-uploads/hooks.php b/plugins/webp-uploads/hooks.php index 06f7b07f9e..3d94d83c91 100644 --- a/plugins/webp-uploads/hooks.php +++ b/plugins/webp-uploads/hooks.php @@ -781,6 +781,8 @@ function webp_uploads_render_generator() { /** * Adds a settings link to the plugin's action links. * + * @since 1.0.6 + * * @param array $links An array of plugin action links. * @return array Plugin action links. */ From 02ee69ea04c781f48995c25e5d8a58643e9e4e5b Mon Sep 17 00:00:00 2001 From: Valerii Vasyliev Date: Thu, 7 Mar 2024 14:29:28 +0800 Subject: [PATCH 13/14] Update plugins/webp-uploads/hooks.php Co-authored-by: Mukesh Panchal --- plugins/webp-uploads/hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webp-uploads/hooks.php b/plugins/webp-uploads/hooks.php index 3d94d83c91..3e05ff1a39 100644 --- a/plugins/webp-uploads/hooks.php +++ b/plugins/webp-uploads/hooks.php @@ -784,7 +784,7 @@ function webp_uploads_render_generator() { * @since 1.0.6 * * @param array $links An array of plugin action links. - * @return array Plugin action links. + * @return array The modified list of actions. */ function webp_uploads_settings_link( $links ) { if ( ! is_array( $links ) ) { From 5a1977f836555d1b4fec727da22f00ff82cbeef2 Mon Sep 17 00:00:00 2001 From: Valerii Vasyliev Date: Thu, 7 Mar 2024 14:29:52 +0800 Subject: [PATCH 14/14] Update plugins/webp-uploads/hooks.php Co-authored-by: Mukesh Panchal --- plugins/webp-uploads/hooks.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/webp-uploads/hooks.php b/plugins/webp-uploads/hooks.php index 3e05ff1a39..a39376926e 100644 --- a/plugins/webp-uploads/hooks.php +++ b/plugins/webp-uploads/hooks.php @@ -790,10 +790,9 @@ function webp_uploads_settings_link( $links ) { if ( ! is_array( $links ) ) { return $links; } - $url = get_admin_url( null, 'options-media.php#perflab_generate_webp_and_jpeg' ); $links[] = sprintf( - '%s', - esc_url( $url ), + '%2$s', + esc_url( admin_url( 'options-media.php#perflab_generate_webp_and_jpeg' ) ), esc_html__( 'Settings', 'webp-uploads' ) ); return $links;