Skip to content

Commit

Permalink
Merge pull request #1279 from WordPress/publish/3.2.0
Browse files Browse the repository at this point in the history
Publish 3.2.0 release
  • Loading branch information
westonruter authored Jun 6, 2024
2 parents 625a713 + 4529501 commit fc0e040
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 28 deletions.
2 changes: 1 addition & 1 deletion plugins/performance-lab/includes/admin/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function perflab_get_plugin_settings_url( string $plugin_slug ): ?string {
/**
* Prints the Performance Lab install notice after each feature plugin's row meta.
*
* @since n.e.x.t
* @since 3.2.0
*
* @param string $plugin_file Plugin file.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function use_output_buffer(): bool {
* assured that other plugins' output buffer callbacks will run before the Server-Timing one that sends the
* Server-Timing header.
*
* @since n.e.x.t
* @since 3.2.0
*/
public function add_hooks(): void {
if ( $this->use_output_buffer() ) {
Expand Down Expand Up @@ -264,7 +264,7 @@ public function on_template_include( $passthrough = null ) {
/**
* Starts output buffering to send the Server-Timing header right before returning the buffer.
*
* @since n.e.x.t
* @since 3.2.0
*/
public function start_output_buffer(): void {
ob_start(
Expand Down
5 changes: 2 additions & 3 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.4
* Requires PHP: 7.2
* Version: 3.1.0
* Version: 3.2.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', '3.1.0' );
define( 'PERFLAB_VERSION', '3.2.0' );
define( 'PERFLAB_MAIN_FILE', __FILE__ );
define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) );
define( 'PERFLAB_SCREEN', 'performance-lab' );
Expand Down Expand Up @@ -108,7 +108,6 @@ function perflab_get_standalone_plugin_data(): array {
'constant' => 'IMAGE_PRIORITIZER_VERSION',
'experimental' => true,
),
// TODO: Add image loading optimization plugin, dependent of Optimization Detective, once ready for end users.
'performant-translations' => array(
'constant' => 'PERFORMANT_TRANSLATIONS_VERSION',
),
Expand Down
12 changes: 11 additions & 1 deletion plugins/performance-lab/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: wordpressdotorg
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.2
Stable tag: 3.1.0
Stable tag: 3.2.0
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 @@ -62,6 +62,16 @@ Contributions are always welcome! Learn more about how to get involved in the [C

= 3.2.0 =

**Enhancements**

* Add install note after each PerfLab feature plugin in the plugin list table. ([1265](https://github.com/WordPress/performance/pull/1265))
* Update plugins with new banners and icons. ([1272](https://github.com/WordPress/performance/pull/1272))

**Bug Fixes**

* Fix Server-Timing compatibility with other plugins that do output buffering. ([1260](https://github.com/WordPress/performance/pull/1260))
* Harden autoloaded-options site health test for incorrectly implemented external object cache plugins. ([1238](https://github.com/WordPress/performance/pull/1238))

= 3.1.0 =

**Enhancements**
Expand Down
4 changes: 2 additions & 2 deletions plugins/speculation-rules/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Enables browsers to speculatively prerender or prefetch pages when hovering over links.
* Requires at least: 6.4
* Requires PHP: 7.2
* Version: 1.3.1-alpha
* Version: 1.3.1
* 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
}
)(
'plsr_pending_plugin_info',
'1.3.1-alpha',
'1.3.1',
static function ( string $version ): void {

// Define the constant.
Expand Down
8 changes: 7 additions & 1 deletion plugins/speculation-rules/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: wordpressdotorg
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.2
Stable tag: 1.3.0
Stable tag: 1.3.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: performance, javascript, speculation rules, prerender, prefetch
Expand Down Expand Up @@ -114,6 +114,12 @@ Contributions are always welcome! Learn more about how to get involved in the [C

== Changelog ==

= 1.3.1 =

**Bug Fixes**

* Check if rel contains nofollow instead of being just nofollow when excluding speculative loading. ([1232](https://github.com/WordPress/performance/pull/1232))

= 1.3.0 =

**Enhancements**
Expand Down
12 changes: 6 additions & 6 deletions plugins/webp-uploads/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* for example an image/jpeg can be converted into an image/webp.
*
* @since 1.0.0
* @since n.e.x.t Added support for AVIF.
* @since 2.0.0 Added support for AVIF.
*
* @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 @@ -334,7 +334,7 @@ function webp_uploads_should_discard_additional_image_file( array $original, arr
*
* Includes special handling for false positives on AVIF support.
*
* @since n.e.x.t
* @since 2.0.0
*
* @param string $mime_type The mime type to check.
* @return bool Whether the server supports a given mime type.
Expand Down Expand Up @@ -364,7 +364,7 @@ function webp_uploads_mime_type_supported( string $mime_type ): bool {
/**
* Get the image output format setting from the option. Default is avif.
*
* @since n.e.x.t
* @since 2.0.0
*
* @return string The image output format. One of 'webp' or 'avif'.
*/
Expand All @@ -376,7 +376,7 @@ function webp_uploads_get_image_output_format(): string {
/**
* Sanitizes the image format.
*
* @since n.e.x.t
* @since 2.0.0
*
* @param string $image_format The image format to check.
* @return string Supported image format.
Expand All @@ -388,7 +388,7 @@ function webp_uploads_sanitize_image_format( string $image_format ): string {
/**
* Checks if the `webp_uploads_use_picture_element` option is enabled.
*
* @since n.e.x.t
* @since 2.0.0
*
* @return bool True if the option is enabled, false otherwise.
*/
Expand All @@ -399,7 +399,7 @@ function webp_uploads_is_picture_element_enabled(): bool {
/**
* Checks if the `perflab_generate_webp_and_jpeg` option is enabled.
*
* @since n.e.x.t
* @since 2.0.0
*
* @return bool True if the option is enabled, false otherwise.
*/
Expand Down
4 changes: 2 additions & 2 deletions plugins/webp-uploads/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Converts images to more modern formats such as WebP or AVIF during upload.
* Requires at least: 6.4
* Requires PHP: 7.2
* Version: 1.1.1
* Version: 2.0.0
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPLv2 or later
Expand All @@ -25,7 +25,7 @@
return;
}

define( 'WEBP_UPLOADS_VERSION', '1.1.1' );
define( 'WEBP_UPLOADS_VERSION', '2.0.0' );
define( 'WEBP_UPLOADS_MAIN_FILE', plugin_basename( __FILE__ ) );

require_once __DIR__ . '/helper.php';
Expand Down
6 changes: 3 additions & 3 deletions plugins/webp-uploads/picture-element.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
*
* @package webp-uploads
*
* @since n.e.x.t
* @since 2.0.0
*/

/**
* Potentially wrap an image tag in a picture element.
*
* @since n.e.x.t
* @since 2.0.0
*
* @param string $image The image tag.
* @param string $context The context for the image tag.
Expand Down Expand Up @@ -49,7 +49,7 @@ function webp_uploads_wrap_image_in_picture( string $image, string $context, int
* The mime types will output in the picture element in the order they are provided.
* The original image will be used as the fallback image for browsers that don't support the picture element.
*
* @since n.e.x.t
* @since 2.0.0
* @param string[] $mime_types Mime types than can be used.
* @param int $attachment_id The id of the image being evaluated.
*/
Expand Down
11 changes: 10 additions & 1 deletion plugins/webp-uploads/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,17 @@ By default, the Modern Image Formats plugin will only generate WebP versions of
== Changelog ==

= 2.0.0 =

**Features**

* Add `picture` element support. ([73](https://github.com/WordPress/performance/pull/73))
* Add AVIF image format support. Add setting for output image format to choose between WebP and AVIF. ([1176](https://github.com/WordPress/performance/pull/1176))

**Enhancements**

* Improve Settings->Media controls for Modern Image Formats. ([1273](https://github.com/WordPress/performance/pull/1273))
* Remove obsolete fallback script now that picture element is supported. ([1269](https://github.com/WordPress/performance/pull/1269))

= 1.1.1 =

**Enhancements**
Expand Down Expand Up @@ -114,4 +123,4 @@ By default, the Modern Image Formats plugin will only generate WebP versions of

= 2.0.0 =

This release adds support for AVIF images and enables selecting the the output image format to choose between WebP and AVIF when both are available. AVIF is used as the default when the server supports it.
This release adds support for AVIF images and enables selecting the the output image format to choose between WebP and AVIF when both are available. AVIF is used as the default when the server supports it.
11 changes: 5 additions & 6 deletions plugins/webp-uploads/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
* Registers setting for generating JPEG in addition to the selected modern format for image uploads.
*
* @since 1.0.0
* @since n.e.x.t The setting was made more general to cover outputting JPEG as a secondary type. The "webp" option naming
* was left unchanged for backward compatibility.
* @since n.e.x.t The `perflab_modern_image_format` was added to enable selecting an output format.
* Currently includes AVIF and WebP.
* @since 2.0.0 The setting was made more general to cover outputting JPEG as a secondary type. The "webp" option naming
* was left unchanged for backward compatibility. Also, the `perflab_modern_image_format` was added to
* enable selecting an output format. Currently includes AVIF and WebP.
*/
function webp_uploads_register_media_settings_field(): void {
register_setting(
Expand Down Expand Up @@ -112,7 +111,7 @@ function webp_uploads_add_media_settings_fields(): void {
/**
* Renders the settings field for the 'perflab_modern_image_format' setting.
*
* @since n.e.x.t
* @since 2.0.0
*/
function webp_uploads_generate_avif_webp_setting_callback(): void {

Expand Down Expand Up @@ -193,7 +192,7 @@ function webp_uploads_generate_webp_jpeg_setting_callback(): void {
/**
* Renders the settings field for the 'webp_uploads_use_picture_element' setting.
*
* @since n.e.x.t
* @since 2.0.0
*/
function webp_uploads_use_picture_element_callback(): void {
// Picture element support requires the JPEG output to be enabled.
Expand Down

0 comments on commit fc0e040

Please sign in to comment.