Skip to content

Commit 3b786fc

Browse files
authored
Merge pull request #1754 from WordPress/publish/3.7.0
Prepare 3.7.0 release
2 parents 07fd4cf + 92f17bc commit 3b786fc

38 files changed

+206
-114
lines changed

plugins/auto-sizes/auto-sizes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Improves responsive images with better sizes calculations and auto-sizes for lazy-loaded images.
66
* Requires at least: 6.6
77
* Requires PHP: 7.2
8-
* Version: 1.3.0
8+
* Version: 1.4.0
99
* Author: WordPress Performance Team
1010
* Author URI: https://make.wordpress.org/performance/
1111
* License: GPLv2 or later
@@ -25,7 +25,7 @@
2525
return;
2626
}
2727

28-
define( 'IMAGE_AUTO_SIZES_VERSION', '1.3.0' );
28+
define( 'IMAGE_AUTO_SIZES_VERSION', '1.4.0' );
2929

3030
require_once __DIR__ . '/includes/auto-sizes.php';
3131
require_once __DIR__ . '/includes/improve-calculate-sizes.php';

plugins/auto-sizes/includes/auto-sizes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Functionality to implement auto-sizes for lazy loaded images.
44
*
55
* @package auto-sizes
6-
* @since n.e.x.t
6+
* @since 1.4.0
77
*/
88

99
/**

plugins/auto-sizes/includes/improve-calculate-sizes.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* Functionality to improve the calculation of image `sizes` attributes.
44
*
55
* @package auto-sizes
6-
* @since n.e.x.t
6+
* @since 1.4.0
77
*/
88

99
/**
1010
* Primes attachment into the cache with a single database query.
1111
*
12-
* @since n.e.x.t
12+
* @since 1.4.0
1313
*
1414
* @param string|mixed $content The HTML content.
1515
* @return string The HTML content.
@@ -130,7 +130,7 @@ function auto_sizes_filter_image_tag( $content, array $parsed_block, WP_Block $b
130130
/**
131131
* Modifies the sizes attribute of an image based on layout context.
132132
*
133-
* @since n.e.x.t
133+
* @since 1.4.0
134134
*
135135
* @param int $id The image attachment post ID.
136136
* @param string|array{int, int} $size Image size name or array of width and height.
@@ -228,7 +228,7 @@ function auto_sizes_calculate_better_sizes( int $id, $size, string $align, int $
228228
/**
229229
* Retrieves the layout width for an alignment defined in theme.json.
230230
*
231-
* @since n.e.x.t
231+
* @since 1.4.0
232232
*
233233
* @param string $alignment The alignment value.
234234
* @return string The alignment width based.
@@ -248,7 +248,7 @@ function auto_sizes_get_layout_width( string $alignment ): string {
248248
/**
249249
* Filters the context keys that a block type uses.
250250
*
251-
* @since n.e.x.t
251+
* @since 1.4.0
252252
*
253253
* @param string[] $uses_context Array of registered uses context for a block type.
254254
* @param WP_Block_Type $block_type The full block type object.
@@ -271,7 +271,7 @@ function auto_sizes_filter_uses_context( array $uses_context, WP_Block_Type $blo
271271
/**
272272
* Modifies the block context during rendering to blocks.
273273
*
274-
* @since n.e.x.t
274+
* @since 1.4.0
275275
*
276276
* @param array<string, mixed> $context Current block context.
277277
* @param array<string, mixed> $block The block being rendered.

plugins/auto-sizes/readme.txt

+18-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Contributors: wordpressdotorg
44
Tested up to: 6.7
5-
Stable tag: 1.3.0
5+
Stable tag: 1.4.0
66
License: GPLv2 or later
77
License URI: https://www.gnu.org/licenses/gpl-2.0.html
88
Tags: performance, images, auto-sizes
@@ -52,6 +52,23 @@ Contributions are always welcome! Learn more about how to get involved in the [C
5252

5353
== Changelog ==
5454

55+
= 1.4.0 =
56+
57+
**Features**
58+
59+
* Accurate Sizes: Incorporate layout constraints in image sizes calculations. ([1738](https://github.com/WordPress/performance/pull/1738))
60+
61+
**Enhancements**
62+
63+
* Accurate sizes: Pass parent alignment context to images. ([1701](https://github.com/WordPress/performance/pull/1701))
64+
* Accurate sizes: Reorganize file structure by feature. ([1699](https://github.com/WordPress/performance/pull/1699))
65+
* Accurate sizes: Support relative alignment widths. ([1737](https://github.com/WordPress/performance/pull/1737))
66+
* Remove `auto_sizes_get_layout_settings()`. ([1743](https://github.com/WordPress/performance/pull/1743))
67+
68+
**Bug Fixes**
69+
70+
* Accurate sizes: Disable layout calculations for classic themes. ([1744](https://github.com/WordPress/performance/pull/1744))
71+
5572
= 1.3.0 =
5673

5774
**Enhancements**

plugins/dominant-color-images/hooks.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function dominant_color_render_generator(): void {
194194
* to apply background color based on the dominant color for attachment previews
195195
* in the WordPress admin interface.
196196
*
197-
* @since n.e.x.t
197+
* @since 1.2.0
198198
*/
199199
function dominant_color_admin_inline_style(): void {
200200
$handle = 'dominant-color-admin-styles';
@@ -213,7 +213,7 @@ function dominant_color_admin_inline_style(): void {
213213
* the attachment template. It adds attributes for dominant color and transparency
214214
* to the template, allowing these properties to be displayed in the media library.
215215
*
216-
* @since n.e.x.t
216+
* @since 1.2.0
217217
* @see wp_print_media_templates()
218218
*/
219219
function dominant_color_admin_script(): void {
@@ -249,7 +249,7 @@ function dominant_color_admin_script(): void {
249249
* the dominant color and transparency of the image. It modifies the response array to include
250250
* these additional properties, which can be used in the media library interface.
251251
*
252-
* @since n.e.x.t
252+
* @since 1.2.0
253253
*
254254
* @param array<string, mixed>|mixed $response The current response array for the attachment.
255255
* @param WP_Post $attachment The attachment post object.

plugins/dominant-color-images/load.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Displays placeholders based on an image's dominant color while the image is loading.
66
* Requires at least: 6.6
77
* Requires PHP: 7.2
8-
* Version: 1.1.2
8+
* Version: 1.2.0
99
* Author: WordPress Performance Team
1010
* Author URI: https://make.wordpress.org/performance/
1111
* License: GPLv2 or later
@@ -25,7 +25,7 @@
2525
return;
2626
}
2727

28-
define( 'DOMINANT_COLOR_IMAGES_VERSION', '1.1.2' );
28+
define( 'DOMINANT_COLOR_IMAGES_VERSION', '1.2.0' );
2929

3030
require_once __DIR__ . '/helper.php';
3131
require_once __DIR__ . '/hooks.php';

plugins/dominant-color-images/readme.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Contributors: wordpressdotorg
44
Tested up to: 6.7
5-
Stable tag: 1.1.2
5+
Stable tag: 1.2.0
66
License: GPLv2 or later
77
License URI: https://www.gnu.org/licenses/gpl-2.0.html
88
Tags: performance, images, dominant color
@@ -47,6 +47,12 @@ Contributions are always welcome! Learn more about how to get involved in the [C
4747

4848
== Changelog ==
4949

50+
= 1.2.0 =
51+
52+
**Enhancements**
53+
54+
* Enhance admin media UI with dominant color support. ([1719](https://github.com/WordPress/performance/pull/1719))
55+
5056
= 1.1.2 =
5157

5258
**Enhancements**

plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function is_embed_wrapper( OD_HTML_Tag_Processor $processor ): bool {
8181
* Otherwise, if the embed is not in any initial viewport, it will add lazy-loading logic.
8282
*
8383
* @since 0.2.0
84-
* @since n.e.x.t Adds preconnect links for each viewport group and skips if the element is not in the viewport for that group.
84+
* @since 0.4.0 Adds preconnect links for each viewport group and skips if the element is not in the viewport for that group.
8585
*
8686
* @param OD_Tag_Visitor_Context $context Tag visitor context.
8787
* @return bool Whether the tag should be tracked in URL Metrics.

plugins/embed-optimizer/hooks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ function embed_optimizer_render_generator(): void {
428428
/**
429429
* Gets the path to a script or stylesheet.
430430
*
431-
* @since n.e.x.t
431+
* @since 0.4.0
432432
*
433433
* @param string $src_path Source path, relative to plugin root.
434434
* @param string|null $min_path Minified path. If not supplied, then '.min' is injected before the file extension in the source path.

plugins/embed-optimizer/load.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Optimizes the performance of embeds through lazy-loading, preconnecting, and reserving space to reduce layout shifts.
66
* Requires at least: 6.6
77
* Requires PHP: 7.2
8-
* Version: 0.3.0
8+
* Version: 0.4.0
99
* Author: WordPress Performance Team
1010
* Author URI: https://make.wordpress.org/performance/
1111
* License: GPLv2 or later
@@ -70,7 +70,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi
7070
}
7171
)(
7272
'embed_optimizer_pending_plugin',
73-
'0.3.0',
73+
'0.4.0',
7474
static function ( string $version ): void {
7575
if ( defined( 'EMBED_OPTIMIZER_VERSION' ) ) {
7676
return;

plugins/embed-optimizer/readme.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Contributors: wordpressdotorg
44
Tested up to: 6.7
5-
Stable tag: 0.3.0
5+
Stable tag: 0.4.0
66
License: GPLv2 or later
77
License URI: https://www.gnu.org/licenses/gpl-2.0.html
88
Tags: performance, embeds
@@ -67,6 +67,13 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu
6767

6868
== Changelog ==
6969

70+
= 0.4.0 =
71+
72+
**Enhancements**
73+
74+
* Incorporate media queries into preconnect links to account for whether embeds are in viewport. ([1654](https://github.com/WordPress/performance/pull/1654))
75+
* Serve unminified scripts when `SCRIPT_DEBUG` is enabled. ([1643](https://github.com/WordPress/performance/pull/1643))
76+
7077
= 0.3.0 =
7178

7279
**Enhancements**

plugins/image-prioritizer/class-image-prioritizer-background-image-styled-tag-visitor.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ final class Image_Prioritizer_Background_Image_Styled_Tag_Visitor extends Image_
2929
/**
3030
* Class name used to indicate a background image which is lazy-loaded.
3131
*
32-
* @since n.e.x.t
32+
* @since 0.3.0
3333
* @var string
3434
*/
3535
const LAZY_BG_IMAGE_CLASS_NAME = 'od-lazy-bg-image';
3636

3737
/**
3838
* Whether the lazy-loading script and stylesheet have been added.
3939
*
40-
* @since n.e.x.t
40+
* @since 0.3.0
4141
* @var bool
4242
*/
4343
private $added_lazy_assets = false;
4444

4545
/**
4646
* Tuples of URL Metric group and the common LCP element external background image.
4747
*
48-
* @since n.e.x.t
48+
* @since 0.3.0
4949
* @var array<array{OD_URL_Metric_Group, LcpElementExternalBackgroundImage}>
5050
*/
5151
private $group_common_lcp_element_external_background_images;
@@ -99,7 +99,7 @@ public function __invoke( OD_Tag_Visitor_Context $context ): bool {
9999
/**
100100
* Gets the common LCP element external background image for a URL Metric group.
101101
*
102-
* @since n.e.x.t
102+
* @since 0.3.0
103103
*
104104
* @param OD_URL_Metric_Group $group Group.
105105
* @return LcpElementExternalBackgroundImage|null
@@ -135,7 +135,7 @@ private function get_common_lcp_element_external_background_image( OD_URL_Metric
135135
/**
136136
* Maybe preloads external background image.
137137
*
138-
* @since n.e.x.t
138+
* @since 0.3.0
139139
*
140140
* @param OD_Tag_Visitor_Context $context Context.
141141
*/
@@ -182,7 +182,7 @@ private function maybe_preload_external_lcp_background_image( OD_Tag_Visitor_Con
182182
/**
183183
* Adds an image preload link for the group.
184184
*
185-
* @since n.e.x.t
185+
* @since 0.3.0
186186
*
187187
* @param OD_Link_Collection $link_collection Link collection.
188188
* @param OD_URL_Metric_Group $group URL Metric group.
@@ -205,7 +205,7 @@ private function add_image_preload_link( OD_Link_Collection $link_collection, OD
205205
/**
206206
* Optimizes an element with a background image based on whether it is displayed in any initial viewport.
207207
*
208-
* @since n.e.x.t
208+
* @since 0.3.0
209209
*
210210
* @param OD_Tag_Visitor_Context $context Tag visitor context, with the cursor currently at block with a background image.
211211
*/

plugins/image-prioritizer/class-image-prioritizer-img-tag-visitor.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class Image_Prioritizer_Img_Tag_Visitor extends Image_Prioritizer_Tag_Visi
2525
* Visits a tag.
2626
*
2727
* @since 0.1.0
28-
* @since n.e.x.t Separate the processing of IMG and PICTURE elements.
28+
* @since 0.3.0 Separate the processing of IMG and PICTURE elements.
2929
*
3030
* @param OD_Tag_Visitor_Context $context Tag visitor context.
3131
* @return bool Whether the tag should be tracked in URL Metrics.
@@ -46,7 +46,7 @@ public function __invoke( OD_Tag_Visitor_Context $context ): bool {
4646
/**
4747
* Process an IMG element.
4848
*
49-
* @since n.e.x.t
49+
* @since 0.3.0
5050
*
5151
* @param OD_HTML_Tag_Processor $processor HTML tag processor.
5252
* @param OD_Tag_Visitor_Context $context Tag visitor context.
@@ -183,7 +183,7 @@ private function process_img( OD_HTML_Tag_Processor $processor, OD_Tag_Visitor_C
183183
/**
184184
* Process a PICTURE element.
185185
*
186-
* @since n.e.x.t
186+
* @since 0.3.0
187187
*
188188
* @param OD_HTML_Tag_Processor $processor HTML tag processor.
189189
* @param OD_Tag_Visitor_Context $context Tag visitor context.
@@ -283,7 +283,7 @@ private function process_picture( OD_HTML_Tag_Processor $processor, OD_Tag_Visit
283283
* Returns null if the src attribute is not a string (i.e. src was used as a boolean attribute was used), if it
284284
* it has an empty string value after trimming, or if it is a data: URL.
285285
*
286-
* @since n.e.x.t
286+
* @since 0.3.0
287287
*
288288
* @param OD_HTML_Tag_Processor $processor Processor.
289289
* @param 'src'|'srcset' $attribute_name Attribute name.
@@ -304,7 +304,7 @@ private function get_valid_src( OD_HTML_Tag_Processor $processor, string $attrib
304304
/**
305305
* Adds a LINK with the supplied attributes for each viewport group when the provided XPath is the LCP element.
306306
*
307-
* @since n.e.x.t
307+
* @since 0.3.0
308308
*
309309
* @param OD_Tag_Visitor_Context $context Tag visitor context.
310310
* @param string $xpath XPath of the element.
@@ -351,7 +351,7 @@ static function ( $attribute_value ) {
351351
/**
352352
* Gets the parent tag name.
353353
*
354-
* @since n.e.x.t
354+
* @since 0.3.0
355355
*
356356
* @param OD_Tag_Visitor_Context $context Tag visitor context.
357357
* @return string|null The parent tag name or null if not found.

0 commit comments

Comments
 (0)