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 aedb36e commit 3ab520dCopy full SHA for 3ab520d
src/wp-includes/interactivity-api/class-wp-interactivity-api.php
@@ -521,11 +521,11 @@ private function _process_directives( string $html ) {
521
}
522
} else {
523
$each_child_attrs = $p->get_attribute_names_with_prefix( 'data-wp-each-child' );
524
- if ( ! is_countable( $each_child_attrs ) ) {
+ if ( null === $each_child_attrs ) {
525
continue;
526
527
528
- if ( 0 !== count( $each_child_attrs ) ) {
+ if ( null !== $each_child_attrs && 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