From 3d6950d727c7a303c49e8e45ca6b060b57a393f8 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 10 Jun 2024 18:29:09 -0500 Subject: [PATCH 1/2] Bump Optimization Detective 0.3.1 --- .../class-od-url-metrics-group-collection.php | 2 +- .../class-od-url-metrics-group.php | 2 +- plugins/optimization-detective/load.php | 4 ++-- plugins/optimization-detective/readme.txt | 12 +++++++++++- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/plugins/optimization-detective/class-od-url-metrics-group-collection.php b/plugins/optimization-detective/class-od-url-metrics-group-collection.php index f51900f8db..ed9a16d427 100644 --- a/plugins/optimization-detective/class-od-url-metrics-group-collection.php +++ b/plugins/optimization-detective/class-od-url-metrics-group-collection.php @@ -454,7 +454,7 @@ public function count(): int { /** * Specifies data which should be serialized to JSON. * - * @since n.e.x.t + * @since 0.3.1 * * @return array{ * breakpoints: positive-int[], diff --git a/plugins/optimization-detective/class-od-url-metrics-group.php b/plugins/optimization-detective/class-od-url-metrics-group.php index 6ef38d8b48..e6c5706b38 100644 --- a/plugins/optimization-detective/class-od-url-metrics-group.php +++ b/plugins/optimization-detective/class-od-url-metrics-group.php @@ -339,7 +339,7 @@ public function count(): int { /** * Specifies data which should be serialized to JSON. * - * @since n.e.x.t + * @since 0.3.1 * * @return array{ * freshness_ttl: 0|positive-int, diff --git a/plugins/optimization-detective/load.php b/plugins/optimization-detective/load.php index 454914611b..6d6224039f 100644 --- a/plugins/optimization-detective/load.php +++ b/plugins/optimization-detective/load.php @@ -5,7 +5,7 @@ * Description: Provides an API for leveraging real user metrics to detect optimizations to apply on the frontend to improve page performance. * Requires at least: 6.4 * Requires PHP: 7.2 - * Version: 0.3.0 + * Version: 0.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 } )( 'optimization_detective_pending_plugin', - '0.3.0', + '0.3.1', static function ( string $version ): void { // Define the constant. diff --git a/plugins/optimization-detective/readme.txt b/plugins/optimization-detective/readme.txt index 3a31987c03..1b35b804a1 100644 --- a/plugins/optimization-detective/readme.txt +++ b/plugins/optimization-detective/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg Requires at least: 6.4 Tested up to: 6.5 Requires PHP: 7.2 -Stable tag: 0.3.0 +Stable tag: 0.3.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, optimization, rum @@ -135,6 +135,16 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu == Changelog == += 0.3.1 = + +**Enhancements** + +* Log URL metrics group collection to console when debugging is enabled (`WP_DEBUG` is true). ([1295](https://github.com/WordPress/performance/pull/1295)) + +**Bug Fixes** + +* Include non-intersecting elements in URL metrics to fix lazy-load optimization. ([1293](https://github.com/WordPress/performance/pull/1293)) + = 0.3.0 = * The image optimization features have been split out into a new dependent plugin called [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/), which also now optimizes image lazy-loading. ([1088](https://github.com/WordPress/performance/issues/1088)) From 1f09aba324decb445bd4fe589a8eaa7fe5573195 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 10 Jun 2024 18:34:49 -0500 Subject: [PATCH 2/2] Harmonize return descriptions --- .../class-od-url-metrics-group-collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/optimization-detective/class-od-url-metrics-group-collection.php b/plugins/optimization-detective/class-od-url-metrics-group-collection.php index ed9a16d427..b419b80544 100644 --- a/plugins/optimization-detective/class-od-url-metrics-group-collection.php +++ b/plugins/optimization-detective/class-od-url-metrics-group-collection.php @@ -471,7 +471,7 @@ public function count(): int { * complete: bool, * url_metrics: OD_URL_Metric[] * }> - * } Data which can be serialized by json_encode. + * } Data which can be serialized by json_encode(). */ public function jsonSerialize(): array { return array(