Skip to content

Commit 2f97645

Browse files
committed
Mark is_admin_bar as private
1 parent 7a7411a commit 2f97645

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,12 @@ public function get_stored_xpath(): string {
716716
/**
717717
* Returns whether the processor is currently at or inside the admin bar.
718718
*
719+
* This is only intended to be used internally by Optimization Detective as part of the "optimization loop". Tag
720+
* visitors should not rely on this method as it may be deprecated in the future, especially with a migration to
721+
* WP_HTML_Processor after {@link https://core.trac.wordpress.org/ticket/63020} is implemented.
722+
*
719723
* @since 1.0.0
724+
* @access private
720725
*
721726
* @return bool Whether at or inside the admin bar.
722727
*/

0 commit comments

Comments
 (0)