Skip to content

Commit

Permalink
Merge pull request #1345 from WordPress/publish/3.3.0
Browse files Browse the repository at this point in the history
Prepare 3.3.0 release
  • Loading branch information
westonruter authored Jul 15, 2024
2 parents 622ecde + aa0510a commit 64a470d
Show file tree
Hide file tree
Showing 18 changed files with 116 additions and 60 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.0.2
* Version: 1.1.0
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPLv2 or later
Expand All @@ -25,7 +25,7 @@
return;
}

define( 'IMAGE_AUTO_SIZES_VERSION', '1.0.2' );
define( 'IMAGE_AUTO_SIZES_VERSION', '1.1.0' );

require_once __DIR__ . '/hooks.php';

Expand Down
6 changes: 3 additions & 3 deletions plugins/auto-sizes/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function auto_sizes_render_generator(): void {
* It will return the smaller image size and return "px" if the layout width
* is something else, e.g. min(640px, 90vw) or 90vw.
*
* @since n.e.x.t
* @since 1.1.0
*
* @param string $layout_width The layout width.
* @param int $image_width The image width.
Expand All @@ -113,7 +113,7 @@ function auto_sizes_get_width( string $layout_width, int $image_width ): string
/**
* Filter the sizes attribute for images to improve the default calculation.
*
* @since n.e.x.t
* @since 1.1.0
*
* @param string $content The block content about to be rendered.
* @param array<string, mixed> $parsed_block The parsed block.
Expand Down Expand Up @@ -147,7 +147,7 @@ function auto_sizes_filter_image_tag( string $content, array $parsed_block ): st
/**
* Filter the sizes attribute for images to improve the default calculation.
*
* @since n.e.x.t
* @since 1.1.0
*
* @param string $content The block content about to be rendered.
* @return string The updated block content.
Expand Down
6 changes: 3 additions & 3 deletions plugins/auto-sizes/optimization-detective.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Optimization Detective extensions by Auto Sizes.
*
* @since n.e.x.t
* @since 1.1.0
* @package auto-sizes
*/

Expand All @@ -13,7 +13,7 @@
/**
* Visits responsive lazy-loaded IMG tags to ensure they include sizes=auto.
*
* @since n.e.x.t
* @since 1.1.0
*
* @param OD_Tag_Visitor_Context $context Tag visitor context.
* @return false Whether the tag should be recorded in URL metrics.
Expand Down Expand Up @@ -54,7 +54,7 @@ function auto_sizes_visit_tag( OD_Tag_Visitor_Context $context ): bool {
/**
* Registers the tag visitor for image tags.
*
* @since n.e.x.t
* @since 1.1.0
*
* @param OD_Tag_Visitor_Registry $registry Tag visitor registry.
*/
Expand Down
20 changes: 19 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.0.2
Stable tag: 1.1.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,24 @@ Contributions are always welcome! Learn more about how to get involved in the [C

== Changelog ==

= 1.1.0 =

**Features**

* Initial implementation of improved image `sizes` algorithm. ([1250](https://github.com/WordPress/performance/pull/1250))

**Enhancements**

* Improved image `sizes` for left/right/center alignment. ([1290](https://github.com/WordPress/performance/pull/1290))
* Integrate Auto Sizes with Image Prioritizer to ensure correct sizes=auto. ([1322](https://github.com/WordPress/performance/pull/1322))
* Update `Auto-sizes for Lazy-loaded Images` plugin name to `Enhanced Responsive Images`. ([1335](https://github.com/WordPress/performance/pull/1335))
* Use correct sizes for small images. ([1252](https://github.com/WordPress/performance/pull/1252))

**Documentation**

* Update the plugin description for Enhanced Responsive Images. ([1339](https://github.com/WordPress/performance/pull/1339))
* Update the plugin header description. ([1344](https://github.com/WordPress/performance/pull/1344))

= 1.0.2 =

* Improve overall code quality with stricter static analysis checks. ([775](https://github.com/WordPress/performance/issues/775))
Expand Down
6 changes: 3 additions & 3 deletions plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Tag visitor for Embed Optimizer.
*
* @package embed-optimizer
* @since n.e.x.t
* @since 0.2.0
*/

// Exit if accessed directly.
Expand All @@ -14,7 +14,7 @@
/**
* Tag visitor that optimizes embeds.
*
* @since n.e.x.t
* @since 0.2.0
* @access private
*/
final class Embed_Optimizer_Tag_Visitor {
Expand All @@ -29,7 +29,7 @@ final class Embed_Optimizer_Tag_Visitor {
/**
* Visits a tag.
*
* @since n.e.x.t
* @since 0.2.0
*
* @param OD_Tag_Visitor_Context $context Tag visitor context.
* @return bool Whether the visit or visited the tag.
Expand Down
10 changes: 5 additions & 5 deletions plugins/embed-optimizer/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Add hooks.
*
* @since n.e.x.t
* @since 0.2.0
*/
function embed_optimizer_add_hooks(): void {
add_action( 'wp_head', 'embed_optimizer_render_generator' );
Expand All @@ -29,7 +29,7 @@ function embed_optimizer_add_hooks(): void {
/**
* Registers the tag visitor for embeds.
*
* @since n.e.x.t
* @since 0.2.0
*
* @param OD_Tag_Visitor_Registry $registry Tag visitor registry.
*/
Expand Down Expand Up @@ -61,7 +61,7 @@ function embed_optimizer_filter_oembed_html( string $html ): string {
/**
* Applies changes to HTML in the supplied tag processor to lazy-load the embed.
*
* @since n.e.x.t
* @since 0.2.0
*
* phpcs:disable Squiz.Commenting.FunctionCommentThrowTag.Missing -- The exception is caught.
*
Expand Down Expand Up @@ -214,7 +214,7 @@ function embed_optimizer_lazy_load_scripts(): void {
*
* Load an embed's scripts when it approaches the viewport using an IntersectionObserver.
*
* @since n.e.x.t
* @since 0.2.0
*/
function embed_optimizer_get_lazy_load_script(): string {
return <<<JS
Expand Down Expand Up @@ -260,7 +260,7 @@ function embed_optimizer_get_lazy_load_script(): string {
/**
* Prints the Optimization Detective installation notices.
*
* @since n.e.x.t
* @since 0.2.0
*
* @param string $plugin_file Plugin file.
*/
Expand Down
4 changes: 2 additions & 2 deletions plugins/embed-optimizer/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Optimizes the performance of embeds by lazy-loading iframes and scripts.
* Requires at least: 6.5
* Requires PHP: 7.2
* Version: 0.1.2
* Version: 0.2.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
}
)(
'embed_optimizer_pending_plugin',
'0.1.2',
'0.2.0',
static function ( string $version ): void {

define( 'EMBED_OPTIMIZER_VERSION', $version );
Expand Down
9 changes: 8 additions & 1 deletion plugins/embed-optimizer/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.2
Stable tag: 0.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: performance, embeds
Expand Down Expand Up @@ -51,6 +51,13 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu

== Changelog ==

= 0.2.0 =

**Enhancements**

* Facilitate embedding of Embed Optimizer. ([1337](https://github.com/WordPress/performance/pull/1337))
* Leverage Optimization Detective to optimize embeds in Embed Optimizer. ([1302](https://github.com/WordPress/performance/pull/1302))

= 0.1.2 =

**Enhancements**
Expand Down
Loading

0 comments on commit 64a470d

Please sign in to comment.