From 1562e61835ba6db2e62c735642e8fc143ced7d41 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Mon, 21 Aug 2023 12:00:53 -0400 Subject: [PATCH] Prepare 2.6.0 release. --- admin/server-timing.php | 10 +++++----- load.php | 4 ++-- .../images/dominant-color-images/helper.php | 4 ++-- modules/images/webp-uploads/image-edit.php | 2 +- readme.txt | 20 ++++++++++++++++++- server-timing/defaults.php | 2 +- server-timing/load.php | 4 ++-- 7 files changed, 32 insertions(+), 14 deletions(-) diff --git a/admin/server-timing.php b/admin/server-timing.php index 9c2c7b8e58..22b4a5809e 100644 --- a/admin/server-timing.php +++ b/admin/server-timing.php @@ -17,7 +17,7 @@ /** * Adds the Server-Timing page to the Tools menu. * - * @since n.e.x.t + * @since 2.6.0 */ function perflab_add_server_timing_page() { $hook_suffix = add_management_page( @@ -40,7 +40,7 @@ function perflab_add_server_timing_page() { /** * Initializes settings sections and fields for the Server-Timing page. * - * @since n.e.x.t + * @since 2.6.0 */ function perflab_load_server_timing_page() { /* @@ -147,7 +147,7 @@ static function() { /** * Renders the Server-Timing page. * - * @since n.e.x.t + * @since 2.6.0 */ function perflab_render_server_timing_page() { ?> @@ -169,7 +169,7 @@ function perflab_render_server_timing_page() { /** * Renders a hooks field for the given Server-Timing option. * - * @since n.e.x.t + * @since 2.6.0 * * @param string $slug Slug of the field and sub-key in the Server-Timing option. */ @@ -203,7 +203,7 @@ class="large-text code" /** * Renders the section for enabling output buffering for Server-Timing. * - * @since n.e.x.t + * @since 2.6.0 */ function perflab_render_server_timing_page_output_buffering_section() { $slug = 'output_buffering'; diff --git a/load.php b/load.php index 45fe6b06a0..617c1b3147 100644 --- a/load.php +++ b/load.php @@ -5,7 +5,7 @@ * Description: Performance plugin from the WordPress Performance Team, which is a collection of standalone performance modules. * Requires at least: 6.1 * Requires PHP: 5.6 - * Version: 2.5.0 + * Version: 2.6.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', '2.5.0' ); +define( 'PERFLAB_VERSION', '2.6.0' ); define( 'PERFLAB_MAIN_FILE', __FILE__ ); define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) ); define( 'PERFLAB_MODULES_SETTING', 'perflab_modules_settings' ); diff --git a/modules/images/dominant-color-images/helper.php b/modules/images/dominant-color-images/helper.php index f5c5fa4690..a488d92b24 100644 --- a/modules/images/dominant-color-images/helper.php +++ b/modules/images/dominant-color-images/helper.php @@ -45,7 +45,7 @@ function dominant_color_set_image_editors( $editors ) { * Computes the dominant color of the given attachment image and whether it has transparency. * * @since 1.2.0 - * @since n.e.x.t Function renamed to remove the `_` prefix. + * @since 2.6.0 Function renamed to remove the `_` prefix. * @access private * * @param int $attachment_id The attachment ID. @@ -95,7 +95,7 @@ function dominant_color_get_dominant_color_data( $attachment_id ) { * Gets file path of image based on size. * * @since 1.2.0 - * @since n.e.x.t Function renamed to change `wp_` prefix to `dominant_color_`. + * @since 2.6.0 Function renamed to change `wp_` prefix to `dominant_color_`. * * @param int $attachment_id Attachment ID for image. * @param string $size Optional. Image size. Default 'medium'. diff --git a/modules/images/webp-uploads/image-edit.php b/modules/images/webp-uploads/image-edit.php index 500782178f..89fc8e3d28 100644 --- a/modules/images/webp-uploads/image-edit.php +++ b/modules/images/webp-uploads/image-edit.php @@ -427,7 +427,7 @@ function webp_uploads_restore_image( $attachment_id, $data ) { * The filter {@see 'image_edit_thumbnails_separately'} was introduced in WordPress 6.3 with default value of `false`, * for a behavior that previously was always enabled. * - * @since n.e.x.t + * @since 2.6.0 * @see https://core.trac.wordpress.org/ticket/57685 * * @return bool True if editing image thumbnails is enabled, false otherwise. diff --git a/readme.txt b/readme.txt index 5a25a901d8..5959293f25 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg Requires at least: 6.1 Tested up to: 6.3 Requires PHP: 5.6 -Stable tag: 2.5.0 +Stable tag: 2.6.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 @@ -80,6 +80,24 @@ By default, the WebP Uploads module will only generate WebP versions of the imag == Changelog == += 2.6.0 = + +**Features** + +* Infrastructure: Add output buffering checkbox to Server-Timing screen. ([801](https://github.com/WordPress/performance/pull/801)) +* Infrastructure: Implement logic to measure specific hook execution time with Server-Timing controlled by a WP Admin screen. ([784](https://github.com/WordPress/performance/pull/784)) + +**Enhancements** + +* Images: Fix incorrect function prefixes in Dominant Color Images. ([789](https://github.com/WordPress/performance/pull/789)) +* Infrastructure: Add early exit clauses to files with procedural code. ([790](https://github.com/WordPress/performance/pull/790)) +* Infrastructure: Allow disabling Server-Timing entirely using `PERFLAB_DISABLE_SERVER_TIMING` constant. ([795](https://github.com/WordPress/performance/pull/795)) + +**Bug Fixes** + +* Images: Fix WebP handling when editing images based on WordPress 6.3 change. ([796](https://github.com/WordPress/performance/pull/796)) +* Infrastructure: Fix errors detected by Plugin Checker. ([788](https://github.com/WordPress/performance/pull/788)) + = 2.5.0 = **Enhancements** diff --git a/server-timing/defaults.php b/server-timing/defaults.php index f9779a1f6c..ad3ad5bb41 100644 --- a/server-timing/defaults.php +++ b/server-timing/defaults.php @@ -223,7 +223,7 @@ static function( $acc, $query ) { * These metrics should be registered as soon as possible. They can be added * and modified in the "Tools > Server-Timing" screen. * - * @since n.e.x.t + * @since 2.6.0 */ function perflab_register_additional_server_timing_metrics_from_setting() { $options = (array) get_option( PERFLAB_SERVER_TIMING_SETTING, array() ); diff --git a/server-timing/load.php b/server-timing/load.php index fa332bcd9d..557805481b 100644 --- a/server-timing/load.php +++ b/server-timing/load.php @@ -136,7 +136,7 @@ function perflab_wrap_server_timing( $callback, $metric_slug, $access_cap ) { /** * Registers the Server-Timing setting. * - * @since n.e.x.t + * @since 2.6.0 */ function perflab_register_server_timing_setting() { register_setting( @@ -154,7 +154,7 @@ function perflab_register_server_timing_setting() { /** * Sanitizes the Server-Timing setting. * - * @since n.e.x.t + * @since 2.6.0 * * @param mixed $value Server-Timing setting value. * @return array Sanitized Server-Timing setting value.