Skip to content

Commit

Permalink
Merge pull request #1548 from WordPress/publish/3.4.1
Browse files Browse the repository at this point in the history
Prepare 3.4.1 release
  • Loading branch information
westonruter authored Sep 23, 2024
2 parents d86cf87 + 316e8fe commit d495214
Show file tree
Hide file tree
Showing 19 changed files with 92 additions and 38 deletions.
4 changes: 2 additions & 2 deletions plugins/auto-sizes/auto-sizes.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Improves responsive images with better sizes calculations and auto-sizes for lazy-loaded images.
* Requires at least: 6.5
* Requires PHP: 7.2
* Version: 1.2.0
* Version: 1.3.0
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPLv2 or later
Expand All @@ -25,6 +25,6 @@
return;
}

define( 'IMAGE_AUTO_SIZES_VERSION', '1.2.0' );
define( 'IMAGE_AUTO_SIZES_VERSION', '1.3.0' );

require_once __DIR__ . '/hooks.php';
9 changes: 8 additions & 1 deletion plugins/auto-sizes/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributors: wordpressdotorg
Tested up to: 6.6
Stable tag: 1.2.0
Stable tag: 1.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: performance, images, auto-sizes
Expand Down Expand Up @@ -52,6 +52,13 @@ Contributions are always welcome! Learn more about how to get involved in the [C

== Changelog ==

= 1.3.0 =

**Enhancements**

* Move Auto Sizes logic from Enhanced Responsive Images to Image Prioritizer. ([1476](https://github.com/WordPress/performance/pull/1476))
* Update auto sizes logic in Enhanced Responsive Images plugin to no longer load if already in Core. ([1547](https://github.com/WordPress/performance/pull/1547))

= 1.2.0 =

**Enhancements**
Expand Down
4 changes: 2 additions & 2 deletions plugins/dominant-color-images/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Displays placeholders based on an image's dominant color while the image is loading.
* Requires at least: 6.5
* 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
Expand All @@ -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';
13 changes: 12 additions & 1 deletion plugins/dominant-color-images/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributors: wordpressdotorg
Tested up to: 6.6
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
Expand Down Expand Up @@ -47,6 +47,17 @@ Contributions are always welcome! Learn more about how to get involved in the [C

== Changelog ==

= 1.1.2 =

**Enhancements**

* Use more robust HTML Tag Processor for Image Placeholders. ([1477](https://github.com/WordPress/performance/pull/1477))

**Bug Fixes**

* Re-remove unneeded phpcs:ignore. ([1231](https://github.com/WordPress/performance/pull/1231))
* Update PHPStan to 1.11.5. ([1318](https://github.com/WordPress/performance/pull/1318))

= 1.1.1 =

**Enhancements**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static function ( string $value ): bool {
*
* Per the HTML spec, if present it must be the first entry.
*
* @since n.e.x.t
* @since 0.1.4
*
* @param string $sizes_attr The 'sizes' attribute value.
* @return bool True if the 'auto' keyword is present, false otherwise.
Expand Down
4 changes: 2 additions & 2 deletions plugins/image-prioritizer/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Requires at least: 6.5
* Requires PHP: 7.2
* Requires Plugins: optimization-detective
* Version: 0.1.3
* Version: 0.1.4
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPLv2 or later
Expand Down Expand Up @@ -66,7 +66,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi
}
)(
'image_prioritizer_pending_plugin',
'0.1.3',
'0.1.4',
static function ( string $version ): void {

// Define the constant.
Expand Down
8 changes: 7 additions & 1 deletion plugins/image-prioritizer/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributors: wordpressdotorg
Tested up to: 6.6
Stable tag: 0.1.3
Stable tag: 0.1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: performance, optimization, image, lcp, lazy-load
Expand Down Expand Up @@ -62,6 +62,12 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu

== Changelog ==

= 0.1.4 =

**Enhancements**

* Move Auto Sizes logic from Enhanced Responsive Images to Image Prioritizer. ([1476](https://github.com/WordPress/performance/pull/1476))

= 0.1.3 =

**Bug Fixes**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ final class OD_HTML_Tag_Processor extends WP_HTML_Tag_Processor {
/**
* Count for the number of times that the cursor was moved.
*
* @since n.e.x.t
* @since 0.6.0
* @var int
* @see self::next_token()
* @see self::seek()
Expand Down Expand Up @@ -342,7 +342,7 @@ public function next_token(): bool {
/**
* Gets the number of times the cursor has moved.
*
* @since n.e.x.t
* @since 0.6.0
* @see self::next_token()
* @see self::seek()
*
Expand Down
8 changes: 4 additions & 4 deletions plugins/optimization-detective/class-od-strict-url-metric.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Optimization Detective: OD_Strict_URL_Metric class
*
* @package optimization-detective
* @since n.e.x.t
* @since 0.6.0
*/

// Exit if accessed directly.
Expand All @@ -17,15 +17,15 @@
* This is used exclusively in the REST API endpoint for capturing new URL metrics to prevent invalid additional data from being
* submitted in the request. For URL metrics which have been stored the looser OD_URL_Metric class is used instead.
*
* @since n.e.x.t
* @since 0.6.0
* @access private
*/
final class OD_Strict_URL_Metric extends OD_URL_Metric {

/**
* Gets JSON schema for URL Metric without additionalProperties.
*
* @since n.e.x.t
* @since 0.6.0
*
* @return array<string, mixed> Schema.
*/
Expand All @@ -39,7 +39,7 @@ public static function get_json_schema(): array {
* This is a forked version of `rest_default_additional_properties_to_false()` which isn't being used itself because
* it does not override `additionalProperties` to be false, but rather only sets it when it is empty.
*
* @since n.e.x.t
* @since 0.6.0
* @see rest_default_additional_properties_to_false()
*
* @param mixed $schema Schema.
Expand Down
10 changes: 5 additions & 5 deletions plugins/optimization-detective/class-od-url-metric.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public static function get_json_schema(): array {
/**
* Filters additional schema properties which should be allowed at the root of a URL metric.
*
* @since n.e.x.t
* @since 0.6.0
*
* @param array<string, array{type: string}> $additional_properties Additional properties.
*/
Expand All @@ -255,7 +255,7 @@ public static function get_json_schema(): array {
/**
* Filters additional schema properties which should be allowed for an elements item in a URL metric.
*
* @since n.e.x.t
* @since 0.6.0
*
* @param array<string, array{type: string}> $additional_properties Additional properties.
*/
Expand All @@ -274,7 +274,7 @@ public static function get_json_schema(): array {
/**
* Extends a schema with additional optional properties.
*
* @since n.e.x.t
* @since 0.6.0
*
* @param array<string, mixed> $properties_schema Properties schema to extend.
* @param array<string, mixed> $additional_properties Additional properties.
Expand All @@ -287,7 +287,7 @@ protected static function extend_schema_with_optional_properties( array $propert
_doing_it_wrong(
esc_html( "Filter: '{$filter_name}'" ),
esc_html( $message ),
'Optimization Detective n.e.x.t'
'Optimization Detective 0.6.0'
);
};
foreach ( $additional_properties as $property_key => $property_schema ) {
Expand Down Expand Up @@ -349,7 +349,7 @@ protected static function extend_schema_with_optional_properties( array $propert
*
* This is particularly useful in conjunction with the `od_url_metric_schema_root_additional_properties` filter.
*
* @since n.e.x.t
* @since 0.6.0
*
* @param string $key Property.
* @return mixed|null The property value, or null if not set.
Expand Down
4 changes: 2 additions & 2 deletions plugins/optimization-detective/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.5
* Requires PHP: 7.2
* Version: 0.5.0
* Version: 0.6.0
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPLv2 or later
Expand Down Expand Up @@ -65,7 +65,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi
}
)(
'optimization_detective_pending_plugin',
'0.5.0',
'0.6.0',
static function ( string $version ): void {

// Define the constant.
Expand Down
16 changes: 15 additions & 1 deletion plugins/optimization-detective/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributors: wordpressdotorg
Tested up to: 6.6
Stable tag: 0.5.0
Stable tag: 0.6.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: performance, optimization, rum
Expand Down Expand Up @@ -157,6 +157,20 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu

== Changelog ==

= 0.6.0 =

**Enhancements**

* Allow URL metric schema to be extended. ([1492](https://github.com/WordPress/performance/pull/1492))
* Clarify docs around a tag visitor's boolean return value. ([1479](https://github.com/WordPress/performance/pull/1479))
* Include UUID with each URL metric. ([1489](https://github.com/WordPress/performance/pull/1489))
* Introduce get_cursor_move_count() to use instead of get_seek_count() and get_next_token_count(). ([1478](https://github.com/WordPress/performance/pull/1478))

**Bug Fixes**

* Add missing global documentation for `delete_all_posts()`. ([1522](https://github.com/WordPress/performance/pull/1522))
* Introduce viewport aspect ratio validation for URL Metrics. ([1494](https://github.com/WordPress/performance/pull/1494))

= 0.5.0 =

**Enhancements**
Expand Down
8 changes: 4 additions & 4 deletions plugins/optimization-detective/storage/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function od_verify_url_metrics_storage_nonce( string $nonce, string $slug, strin
/**
* Gets the minimum allowed viewport aspect ratio for URL metrics.
*
* @since n.e.x.t
* @since 0.6.0
* @access private
*
* @return float Minimum viewport aspect ratio for URL metrics.
Expand All @@ -194,7 +194,7 @@ function od_get_minimum_viewport_aspect_ratio(): float {
* The 0.4 default value is intended to accommodate the phone with the greatest known aspect
* ratio at 21:9 when rotated 90 degrees to 9:21 (0.429).
*
* @since n.e.x.t
* @since 0.6.0
*
* @param float $minimum_viewport_aspect_ratio Minimum viewport aspect ratio.
*/
Expand All @@ -204,7 +204,7 @@ function od_get_minimum_viewport_aspect_ratio(): float {
/**
* Gets the maximum allowed viewport aspect ratio for URL metrics.
*
* @since n.e.x.t
* @since 0.6.0
* @access private
*
* @return float Maximum viewport aspect ratio for URL metrics.
Expand All @@ -216,7 +216,7 @@ function od_get_maximum_viewport_aspect_ratio(): float {
* The 2.5 default value is intended to accommodate the phone with the greatest known aspect
* ratio at 21:9 (2.333).
*
* @since n.e.x.t
* @since 0.6.0
*
* @param float $maximum_viewport_aspect_ratio Maximum viewport aspect ratio.
*/
Expand Down
2 changes: 1 addition & 1 deletion plugins/optimization-detective/storage/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function od_handle_rest_request( WP_REST_Request $request ) {
/**
* Fires whenever a URL Metric was successfully collected.
*
* @since n.e.x.t
* @since 0.6.0
*
* @param array $context {
* Context about the successful URL Metric collection.
Expand Down
4 changes: 2 additions & 2 deletions plugins/performance-lab/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 features.
* Requires at least: 6.5
* Requires PHP: 7.2
* Version: 3.4.0
* Version: 3.4.1
* 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', '3.4.0' );
define( 'PERFLAB_VERSION', '3.4.1' );
define( 'PERFLAB_MAIN_FILE', __FILE__ );
define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) );
define( 'PERFLAB_SCREEN', 'performance-lab' );
Expand Down
8 changes: 7 additions & 1 deletion plugins/performance-lab/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributors: wordpressdotorg
Tested up to: 6.6
Stable tag: 3.4.0
Stable tag: 3.4.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: performance, site health, measurement, optimization, diagnostics
Expand Down Expand Up @@ -70,6 +70,12 @@ Contributions are always welcome! Learn more about how to get involved in the [C

== Changelog ==

= 3.4.1 =

**Bug Fixes**

* Fix Incorrect use of _n(). ([1491](https://github.com/WordPress/performance/pull/1491))

= 3.4.0 =

**Enhancements**
Expand Down
6 changes: 3 additions & 3 deletions plugins/webp-uploads/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @since 1.0.0
* @since 2.0.0 Added support for AVIF.
* @since n.e.x.t Added support for PNG.
* @since 2.2.0 Added support for PNG.
*
* @return array<string, array<string>> An array of valid mime types, where the key is the mime type and the value is the extension type.
*/
Expand Down Expand Up @@ -403,7 +403,7 @@ function webp_uploads_is_picture_element_enabled(): bool {
* Checks if the `perflab_generate_webp_and_jpeg` option is enabled.
*
* @since 2.0.0
* @since n.e.x.t Renamed to webp_uploads_is_fallback_enabled().
* @since 2.2.0 Renamed to webp_uploads_is_fallback_enabled().
*
* @return bool True if the option is enabled, false otherwise.
*/
Expand All @@ -417,7 +417,7 @@ function webp_uploads_is_fallback_enabled(): bool {
* This function attempts to locate an alternate image source URL in the
* attachment's metadata that matches the provided MIME type.
*
* @since n.e.x.t
* @since 2.2.0
*
* @param int $attachment_id The ID of the attachment.
* @param string $src The original image src url.
Expand Down
Loading

0 comments on commit d495214

Please sign in to comment.