Skip to content

Commit 10dd59a

Browse files
committed
Remove -beta1 from 1.0.0 since tags
1 parent dce9ad9 commit 10dd59a

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

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 1.0.0-beta1
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 1.0.0-beta1 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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
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 1.0.0-beta1
90+
* @since 1.0.0
9191
*
9292
* @param bool $use_attribution_build Whether to use the attribution build.
9393
*/

plugins/optimization-detective/optimization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function_exists( 'perflab_server_timing_use_output_buffer' )
130130
*
131131
* This is only used when WP_DEBUG is enabled.
132132
*
133-
* @since 1.0.0-beta1
133+
* @since 1.0.0
134134
* @access private
135135
*
136136
* @param string[] $reasons Reason messages.

plugins/optimization-detective/site-health.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Site Health checks.
44
*
55
* @package optimization-detective
6-
* @since 1.0.0-beta1
6+
* @since 1.0.0
77
*/
88

99
// @codeCoverageIgnoreStart
@@ -15,7 +15,7 @@
1515
/**
1616
* Adds the Optimization Detective REST API check to site health tests.
1717
*
18-
* @since 1.0.0-beta1
18+
* @since 1.0.0
1919
* @access private
2020
*
2121
* @param array{direct: array<string, array{label: string, test: string}>}|mixed $tests Site Health Tests.
@@ -39,7 +39,7 @@ function od_add_rest_api_availability_test( $tests ): array {
3939
/**
4040
* Tests availability of the Optimization Detective REST API endpoint.
4141
*
42-
* @since 1.0.0-beta1
42+
* @since 1.0.0
4343
* @access private
4444
*
4545
* @return array{label: string, status: string, badge: array{label: string, color: string}, description: string, actions: string, test: string} Result.
@@ -68,7 +68,7 @@ function od_test_rest_api_availability(): array {
6868
* the admin. The reason for storing the negative unavailable state as opposed to the positive available state is that
6969
* when an option does not exist then `get_option()` returns `false` which is the same falsy value as the stored `'0'`.
7070
*
71-
* @since 1.0.0-beta1
71+
* @since 1.0.0
7272
* @access private
7373
*
7474
* @return bool Whether unavailable.
@@ -80,7 +80,7 @@ function od_is_rest_api_unavailable(): bool {
8080
/**
8181
* Tests availability of the Optimization Detective REST API endpoint.
8282
*
83-
* @since 1.0.0-beta1
83+
* @since 1.0.0
8484
* @access private
8585
*
8686
* @param array<string, mixed>|WP_Error $response REST API response.
@@ -165,7 +165,7 @@ function od_compose_site_health_result( $response ): array {
165165
/**
166166
* Gets the response to an Optimization Detective REST API store request to confirm it is available to unauthenticated requests.
167167
*
168-
* @since 1.0.0-beta1
168+
* @since 1.0.0
169169
* @access private
170170
*
171171
* @param bool $use_cached Whether to use a previous response cached in a transient.
@@ -195,7 +195,7 @@ function od_get_rest_api_health_check_response( bool $use_cached ) {
195195
/**
196196
* Renders an admin notice if the REST API health check fails.
197197
*
198-
* @since 1.0.0-beta1
198+
* @since 1.0.0
199199
* @access private
200200
*
201201
* @param bool $in_plugin_row Whether the notice is to be printed in the plugin row.
@@ -251,7 +251,7 @@ function od_maybe_render_rest_api_health_check_admin_notice( bool $in_plugin_row
251251
/**
252252
* Displays an admin notice on the plugin row if the REST API health check fails.
253253
*
254-
* @since 1.0.0-beta1
254+
* @since 1.0.0
255255
* @access private
256256
*
257257
* @param string $plugin_file Plugin file.
@@ -273,7 +273,7 @@ function od_render_rest_api_health_check_admin_notice_in_plugin_row( string $plu
273273
* shown at the `admin_notices` action once, the notice will only be displayed inline with the plugin row thereafter
274274
* via {@see od_render_rest_api_health_check_admin_notice_in_plugin_row()}.
275275
*
276-
* @since 1.0.0-beta1
276+
* @since 1.0.0
277277
* @access private
278278
*/
279279
function od_maybe_run_rest_api_health_check(): void {

0 commit comments

Comments
 (0)