Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Run logic when is null
  • Loading branch information
DAreRodz authored and samueljseay committed Nov 7, 2025
commit 3ab520d8384a03d3eabb60ec9ec2401efd6eab92
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,11 @@ private function _process_directives( string $html ) {
}
} else {
$each_child_attrs = $p->get_attribute_names_with_prefix( 'data-wp-each-child' );
if ( ! is_countable( $each_child_attrs ) ) {
if ( null === $each_child_attrs ) {
continue;
}

if ( 0 !== count( $each_child_attrs ) ) {
if ( null !== $each_child_attrs && 0 !== count( $each_child_attrs ) ) {
/*
* If the tag has a `data-wp-each-child` directive, jump to its closer
* tag because those tags have already been processed.
Expand Down