Skip to content

Commit d42e53f

Browse files
committed
Fix logic bug in child selector exploration
1 parent 2ae0099 commit d42e53f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/html-api/class-wp-css-complex-selector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private function explore_matches( array $selectors, array $breadcrumbs ): bool {
4646
if ( '*' === $selector->type_selector->ident || strcasecmp( $breadcrumbs[0], $selector->type_selector->ident ) === 0 ) {
4747
return $this->explore_matches( array_slice( $selectors, 2 ), array_slice( $breadcrumbs, 1 ) );
4848
}
49-
return $this->explore_matches( $selectors, array_slice( $breadcrumbs, 1 ) );
49+
return false;
5050

5151
case self::COMBINATOR_DESCENDANT:
5252
// Find _all_ the breadcrumbs that match and recurse from each of them.

0 commit comments

Comments
 (0)