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 98b12d1 commit aedb36eCopy full SHA for aedb36e
src/wp-includes/interactivity-api/class-wp-interactivity-api.php
@@ -520,7 +520,12 @@ private function _process_directives( string $html ) {
520
array_pop( $tag_stack );
521
}
522
} else {
523
- if ( 0 !== count( $p->get_attribute_names_with_prefix( 'data-wp-each-child' ) ) ) {
+ $each_child_attrs = $p->get_attribute_names_with_prefix( 'data-wp-each-child' );
524
+ if ( ! is_countable( $each_child_attrs ) ) {
525
+ continue;
526
+ }
527
+
528
+ if ( 0 !== count( $each_child_attrs ) ) {
529
/*
530
* If the tag has a `data-wp-each-child` directive, jump to its closer
531
* tag because those tags have already been processed.
0 commit comments