We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95dd92b commit 67f7401Copy full SHA for 67f7401
src/wp-includes/html-api/class-wp-css-selectors.php
@@ -962,9 +962,11 @@ public function matches( WP_HTML_Processor $processor ): bool {
962
return false;
963
}
964
965
- foreach ( $this->subclass_selectors as $subclass_selector ) {
966
- if ( ! $subclass_selector->matches( $processor ) ) {
967
- return false;
+ if ( null !== $this->subclass_selectors ) {
+ foreach ( $this->subclass_selectors as $subclass_selector ) {
+ if ( ! $subclass_selector->matches( $processor ) ) {
968
+ return false;
969
+ }
970
971
972
return true;
0 commit comments