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 6c21850 commit 4d0212dCopy full SHA for 4d0212d
src/wp-includes/interactivity-api/class-wp-interactivity-api.php
@@ -439,7 +439,12 @@ private function _process_directives( string $html ) {
439
array_pop( $tag_stack );
440
}
441
} else {
442
- 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' );
443
+ if ( ! is_countable( $each_child_attrs ) ) {
444
+ continue;
445
+ }
446
+
447
+ if ( 0 !== count( $each_child_attrs ) ) {
448
/*
449
* If the tag has a `data-wp-each-child` directive, jump to its closer
450
* tag because those tags have already been processed.
0 commit comments