Skip to content

Commit 46fc9cb

Browse files
authored
Merge pull request #1827 from WordPress/publish/3.8.0
Prepare 3.8.0 release
2 parents e2effe6 + 9183df9 commit 46fc9cb

File tree

27 files changed

+118
-64
lines changed

27 files changed

+118
-64
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private function reduce_layout_shifts( OD_Tag_Visitor_Context $context ): void {
210210
* not end up being the load balanced domain used for the embed. Lastly, these domains are only for the URLs
211211
* for GET requests, as POST requests are not likely to be part of the critical rendering path.
212212
*
213-
* @since n.e.x.t
213+
* @since 0.4.1
214214
*
215215
* @param OD_HTML_Tag_Processor $processor Processor, with the cursor currently at an embed block.
216216
* @return array<non-empty-string> Array of URLs to preconnect to.
@@ -270,7 +270,7 @@ private function get_preconnect_urls( OD_HTML_Tag_Processor $processor ): array
270270
/**
271271
* Adds preconnect links for embed resources.
272272
*
273-
* @since n.e.x.t
273+
* @since 0.4.1
274274
*
275275
* @param OD_Tag_Visitor_Context $context Tag visitor context, with the cursor currently at an embed block.
276276
*/
@@ -299,7 +299,7 @@ private function add_preconnect_links( OD_Tag_Visitor_Context $context ): void {
299299
/**
300300
* Optimizes an embed based on whether it is displayed in any initial viewport.
301301
*
302-
* @since n.e.x.t
302+
* @since 0.4.1
303303
*
304304
* @param OD_Tag_Visitor_Context $context Tag visitor context, with the cursor currently at an embed block.
305305
*/

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.4.0
8+
* Version: 0.4.1
99
* Author: WordPress Performance Team
1010
* Author URI: https://make.wordpress.org/performance/
1111
* License: GPLv2 or later
@@ -71,7 +71,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi
7171
}
7272
)(
7373
'embed_optimizer_pending_plugin',
74-
'0.4.0',
74+
'0.4.1',
7575
static function ( string $version ): void {
7676
if ( defined( 'EMBED_OPTIMIZER_VERSION' ) ) {
7777
return;

plugins/embed-optimizer/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: 0.4.0
5+
Stable tag: 0.4.1
66
License: GPLv2 or later
77
License URI: https://www.gnu.org/licenses/gpl-2.0.html
88
Tags: performance, embeds
@@ -67,6 +67,12 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu
6767

6868
== Changelog ==
6969

70+
= 0.4.1 =
71+
72+
**Bug Fixes**
73+
74+
* Remove requirement for both mobile and desktop URL metrics to be collected for `preconnect` links to be added. ([1764](https://github.com/WordPress/performance/pull/1764))
75+
7076
= 0.4.0 =
7177

7278
**Enhancements**

plugins/image-prioritizer/load.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Requires at least: 6.6
77
* Requires PHP: 7.2
88
* Requires Plugins: optimization-detective
9-
* Version: 0.3.0
9+
* Version: 0.3.1
1010
* Author: WordPress Performance Team
1111
* Author URI: https://make.wordpress.org/performance/
1212
* License: GPLv2 or later
@@ -72,7 +72,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi
7272
}
7373
)(
7474
'image_prioritizer_pending_plugin',
75-
'0.3.0',
75+
'0.3.1',
7676
static function ( string $version ): void {
7777
if ( defined( 'IMAGE_PRIORITIZER_VERSION' ) ) {
7878
return;

plugins/image-prioritizer/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: 0.3.0
5+
Stable tag: 0.3.1
66
License: GPLv2 or later
77
License URI: https://www.gnu.org/licenses/gpl-2.0.html
88
Tags: performance, optimization, image, lcp, lazy-load
@@ -70,6 +70,12 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu
7070

7171
== Changelog ==
7272

73+
= 0.3.1 =
74+
75+
**Bug Fixes**
76+
77+
* Remove erroneous check for resource initiator type when considering whether to submit LCP background image. ([1760](https://github.com/WordPress/performance/pull/1760))
78+
7379
= 0.3.0 =
7480

7581
**Enhancements**

plugins/optimization-detective/class-od-element.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class OD_Element implements ArrayAccess, JsonSerializable {
3636
/**
3737
* Transitional XPath.
3838
*
39-
* @since n.e.x.t
39+
* @since 1.0.0
4040
* @todo Remove logic related to transitional_xpath in a subsequent release once URL Metrics have been collected with the new format.
4141
* @var non-empty-string|null
4242
*/
@@ -131,7 +131,7 @@ public function is_lcp_candidate(): bool {
131131
* Gets XPath for element.
132132
*
133133
* @since 0.7.0
134-
* @since n.e.x.t Returns the transitional XPath format. To access the underlying raw XPath, access the 'xpath' key of the jsonSerialize response.
134+
* @since 1.0.0 Returns the transitional XPath format. To access the underlying raw XPath, access the 'xpath' key of the jsonSerialize response.
135135
* @todo Remove logic related to transitional_xpath in a subsequent release once URL Metrics have been collected with the new format.
136136
*
137137
* @return non-empty-string XPath.

plugins/optimization-detective/class-od-html-tag-processor.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ final class OD_HTML_Tag_Processor extends WP_HTML_Tag_Processor {
159159
* Note that currently only the third item will currently be populated (index 2), as this corresponds to tags which
160160
* are children of the `BODY` tag. This is used in {@see self::get_xpath()}.
161161
*
162-
* @since n.e.x.t
162+
* @since 1.0.0
163163
* @var array<array<string, string>>
164164
*/
165165
private $open_stack_attributes = array();
@@ -204,7 +204,7 @@ final class OD_HTML_Tag_Processor extends WP_HTML_Tag_Processor {
204204
* This is used to store the old XPath format in a transitional period until which new URL Metrics are expected to
205205
* have been collected to purge out references to the old format.
206206
*
207-
* @since n.e.x.t
207+
* @since 1.0.0
208208
* @var string|null
209209
*/
210210
private $current_xpath = null;
@@ -582,7 +582,7 @@ private function get_indexed_breadcrumbs(): Generator {
582582
* Themes utilize the 'wp-site-blocks' class name in the root `DIV`. Only one attribute is currently returned,
583583
* although potentially more could be returned if additional disambiguation is needed in the future.
584584
*
585-
* @since n.e.x.t
585+
* @since 1.0.0
586586
*
587587
* @return array<string, string> Disambiguating attributes.
588588
*/
@@ -682,7 +682,7 @@ public function get_xpath(): string {
682682
* can simply be an alias for that one. See related logic in {@see OD_Element::get_xpath()}. This function is only
683683
* used internally by Optimization Detective in {@see od_optimize_template_output_buffer()}.
684684
*
685-
* @since n.e.x.t
685+
* @since 1.0.0
686686
* @todo Move the logic in this method to the get_xpath() method and let this be an alias for that method once the transitional period is over.
687687
* @access private
688688
*
@@ -715,7 +715,7 @@ public function get_stored_xpath(): string {
715715
/**
716716
* Returns whether the processor is currently at or inside the admin bar.
717717
*
718-
* @since n.e.x.t
718+
* @since 1.0.0
719719
*
720720
* @return bool Whether at or inside the admin bar.
721721
*/

plugins/optimization-detective/class-od-tag-visitor-context.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ final class OD_Tag_Visitor_Context {
5151
/**
5252
* Visited tag state.
5353
*
54-
* @since n.e.x.t
54+
* @since 1.0.0
5555
* @var OD_Visited_Tag_State
5656
*/
5757
private $visited_tag_state;
@@ -78,7 +78,7 @@ public function __construct( OD_HTML_Tag_Processor $processor, OD_URL_Metric_Gro
7878
*
7979
* Calling this method from a tag visitor has the same effect as a tag visitor returning `true`.
8080
*
81-
* @since n.e.x.t
81+
* @since 1.0.0
8282
*/
8383
public function track_tag(): void {
8484
$this->visited_tag_state->track_tag();

plugins/optimization-detective/class-od-visited-tag-state.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Optimization Detective: OD_Visited_Tag_State class
44
*
55
* @package optimization-detective
6-
* @since n.e.x.t
6+
* @since 1.0.0
77
*/
88

99
// @codeCoverageIgnoreStart
@@ -15,15 +15,15 @@
1515
/**
1616
* State for a tag visitation when visited by tag visitors while walking over a document.
1717
*
18-
* @since n.e.x.t
18+
* @since 1.0.0
1919
* @access private
2020
*/
2121
final class OD_Visited_Tag_State {
2222

2323
/**
2424
* Whether the tag should be tracked among the elements in URL Metrics.
2525
*
26-
* @since n.e.x.t
26+
* @since 1.0.0
2727
* @var bool
2828
*/
2929
private $should_track_tag;
@@ -38,7 +38,7 @@ public function __construct() {
3838
/**
3939
* Marks the tag for being tracked in URL Metrics.
4040
*
41-
* @since n.e.x.t
41+
* @since 1.0.0
4242
*/
4343
public function track_tag(): void {
4444
$this->should_track_tag = true;
@@ -47,7 +47,7 @@ public function track_tag(): void {
4747
/**
4848
* Whether the tag should be tracked among the elements in URL Metrics.
4949
*
50-
* @since n.e.x.t
50+
* @since 1.0.0
5151
* @return bool Whether tracked.
5252
*/
5353
public function is_tag_tracked(): bool {
@@ -59,7 +59,7 @@ public function is_tag_tracked(): bool {
5959
*
6060
* This should be called after tag visitors have been invoked on a tag.
6161
*
62-
* @since n.e.x.t
62+
* @since 1.0.0
6363
*/
6464
public function reset(): void {
6565
$this->should_track_tag = false;

plugins/optimization-detective/detection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function od_get_detection_script( string $slug, OD_URL_Metric_Group_Collection $
8787
* Note that the attribution build is slightly larger than the standard build, so this is why it is not used by default.
8888
* The additional attribution data is made available to client-side extension script modules registered via the `od_extension_module_urls` filter.
8989
*
90-
* @since n.e.x.t
90+
* @since 1.0.0
9191
*
9292
* @param bool $use_attribution_build Whether to use the attribution build.
9393
*/

0 commit comments

Comments
 (0)