Skip to content

Commit c2e8c2f

Browse files
committed
Match is successful on _any_ match in selector list
1 parent 732ae24 commit c2e8c2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/html-api/class-wp-css-selectors.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ public function matches( WP_HTML_Processor $processor ): bool {
7676
}
7777

7878
foreach ( $this->selectors as $selector ) {
79-
if ( ! $selector->matches( $processor ) ) {
80-
return false;
79+
if ( $selector->matches( $processor ) ) {
80+
return true;
8181
}
8282
}
83-
return true;
83+
return false;
8484
}
8585

8686
private $selectors;

0 commit comments

Comments
 (0)