Skip to content

Commit 6deb42b

Browse files
committed
Update since n.e.x.t
1 parent 2f4a9ea commit 6deb42b

22 files changed

+71
-71
lines changed

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/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<mixed>|mixed $response The current response array for the attachment.
255255
* @param WP_Post $attachment The attachment post object.

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/image-prioritizer/class-image-prioritizer-background-image-styled-tag-visitor.php

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

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

plugins/image-prioritizer/detect.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const externalBackgroundImages = [];
3434
/**
3535
* Logs a message.
3636
*
37-
* @since n.e.x.t
37+
* @since 0.3.0
3838
*
3939
* @param {...*} message
4040
*/
@@ -46,7 +46,7 @@ function log( ...message ) {
4646
/**
4747
* Logs a warning.
4848
*
49-
* @since n.e.x.t
49+
* @since 0.3.0
5050
*
5151
* @param {...*} message
5252
*/
@@ -58,7 +58,7 @@ function warn( ...message ) {
5858
/**
5959
* Initializes extension.
6060
*
61-
* @since n.e.x.t
61+
* @since 0.3.0
6262
*
6363
* @type {InitializeCallback}
6464
* @param {InitializeArgs} args Args.
@@ -80,7 +80,7 @@ export async function initialize( { isDebug, onLCP } ) {
8080
/**
8181
* Gets the performance resource entry for a given URL.
8282
*
83-
* @since n.e.x.t
83+
* @since 0.3.0
8484
*
8585
* @param {string} url - Resource URL.
8686
* @return {PerformanceResourceTiming|null} Resource entry or null.
@@ -101,7 +101,7 @@ function getPerformanceResourceByURL( url ) {
101101
/**
102102
* Handles a new LCP metric being reported.
103103
*
104-
* @since n.e.x.t
104+
* @since 0.3.0
105105
*
106106
* @param {LCPMetric} metric - LCP Metric.
107107
* @param {boolean} isDebug - Whether in debug mode.
@@ -203,7 +203,7 @@ function handleLCPMetric( metric, isDebug ) {
203203
/**
204204
* Finalizes extension.
205205
*
206-
* @since n.e.x.t
206+
* @since 0.3.0
207207
*
208208
* @type {FinalizeCallback}
209209
* @param {FinalizeArgs} args Args.

plugins/image-prioritizer/helper.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function image_prioritizer_register_tag_visitors( OD_Tag_Visitor_Registry $regis
8383
/**
8484
* Filters the list of Optimization Detective extension module URLs to include the extension for Image Prioritizer.
8585
*
86-
* @since n.e.x.t
86+
* @since 0.3.0
8787
* @access private
8888
*
8989
* @param string[]|mixed $extension_module_urls Extension module URLs.
@@ -100,7 +100,7 @@ function image_prioritizer_filter_extension_module_urls( $extension_module_urls
100100
/**
101101
* Filters additional properties for the element item schema for Optimization Detective.
102102
*
103-
* @since n.e.x.t
103+
* @since 0.3.0
104104
* @access private
105105
*
106106
* @param array<string, array{type: string}> $additional_properties Additional properties.
@@ -145,7 +145,7 @@ function image_prioritizer_add_element_item_schema_properties( array $additional
145145
/**
146146
* Validates URL for a background image.
147147
*
148-
* @since n.e.x.t
148+
* @since 0.3.0
149149
* @access private
150150
*
151151
* @param string $url Background image URL.
@@ -271,7 +271,7 @@ static function ( $host ) {
271271
* potentially no URL Metrics would ever be collected if, for example, the background image URL is pointing to a
272272
* disallowed origin. Then none of the other optimizations would be able to be applied.
273273
*
274-
* @since n.e.x.t
274+
* @since 0.3.0
275275
* @access private
276276
*
277277
* @phpstan-param WP_REST_Request<array<string, mixed>> $request
@@ -322,7 +322,7 @@ function image_prioritizer_filter_rest_request_before_callbacks( $response, arra
322322
/**
323323
* Gets the path to a script or stylesheet.
324324
*
325-
* @since n.e.x.t
325+
* @since 0.3.0
326326
* @access private
327327
*
328328
* @param string $src_path Source path, relative to plugin root.
@@ -384,7 +384,7 @@ function image_prioritizer_get_video_lazy_load_script(): string {
384384
*
385385
* Load the background image when it approaches the viewport using an IntersectionObserver.
386386
*
387-
* @since n.e.x.t
387+
* @since 0.3.0
388388
* @access private
389389
*
390390
* @return string Lazy load script.
@@ -397,7 +397,7 @@ function image_prioritizer_get_lazy_load_bg_image_script(): string {
397397
/**
398398
* Gets the stylesheet to lazy-load background images.
399399
*
400-
* @since n.e.x.t
400+
* @since 0.3.0
401401
* @access private
402402
*
403403
* @return string Lazy load stylesheet.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ public function release_bookmark( $name ): bool {
497497
* A breadcrumb consists of a tag name and its sibling index.
498498
*
499499
* @since 0.4.0
500-
* @since n.e.x.t Renamed from get_breadcrumbs() to get_indexed_breadcrumbs().
500+
* @since 0.9.0 Renamed from get_breadcrumbs() to get_indexed_breadcrumbs().
501501
*
502502
* @return Generator<array{string, int}> Breadcrumb.
503503
*/
@@ -513,7 +513,7 @@ private function get_indexed_breadcrumbs(): Generator {
513513
* Breadcrumbs start at the outermost parent and descend toward the matched element.
514514
* They always include the entire path from the root HTML node to the matched element.
515515
*
516-
* @since n.e.x.t
516+
* @since 0.9.0
517517
* @see WP_HTML_Processor::get_breadcrumbs()
518518
*
519519
* @return string[] Array of tag names representing path to matched node.

0 commit comments

Comments
 (0)