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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 6 deletions
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

Lines changed: 18 additions & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 7 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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;

0 commit comments

Comments
 (0)