Skip to content

Commit

Permalink
Prepare 2.6.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Aug 21, 2023
1 parent 57ca48a commit 1562e61
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 14 deletions.
10 changes: 5 additions & 5 deletions admin/server-timing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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() {
/*
Expand Down Expand Up @@ -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() {
?>
Expand All @@ -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.
*/
Expand Down Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions load.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' );
Expand Down
4 changes: 2 additions & 2 deletions modules/images/dominant-color-images/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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'.
Expand Down
2 changes: 1 addition & 1 deletion modules/images/webp-uploads/image-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
20 changes: 19 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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**
Expand Down
2 changes: 1 addition & 1 deletion server-timing/defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down
4 changes: 2 additions & 2 deletions server-timing/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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.
Expand Down

0 comments on commit 1562e61

Please sign in to comment.