You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/optimization-detective/class-od-html-tag-processor.php
+9-12Lines changed: 9 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -246,38 +246,35 @@ final class OD_HTML_Tag_Processor extends WP_HTML_Tag_Processor {
246
246
/**
247
247
* Finds the next tag.
248
248
*
249
-
* Unlike the base class, this subclass disallows querying. This is to ensure the breadcrumbs can be tracked.
250
-
* It will _always_ visit tag closers.
249
+
* Unlike the base class, this subclass visits tag closers by default.
251
250
*
252
251
* @inheritDoc
253
252
* @since 0.4.0
253
+
* @since n.e.x.t Passing a $query is now allowed.
254
254
*
255
-
* @param array{tag_name?: string|null, match_offset?: int|null, class_name?: string|null, tag_closers?: string|null}|null $query Query, but only null is accepted for this subclass.
// Never process anything inside NOSCRIPT since it will never show up in the DOM when scripting is enabled, and thus it can never be detected nor measured.
358
-
if ( in_array( 'NOSCRIPT', $processor->get_breadcrumbs(), true ) ) {
358
+
// Similarly, elements in the Admin Bar are not relevant for optimization, so this loop ensures that no tags in the Admin Bar are visited.
0 commit comments