diff --git a/src/wp-includes/html-api/class-wp-html-processor.php b/src/wp-includes/html-api/class-wp-html-processor.php index 60d7849be5f94..fb3abbabf1f03 100644 --- a/src/wp-includes/html-api/class-wp-html-processor.php +++ b/src/wp-includes/html-api/class-wp-html-processor.php @@ -939,7 +939,7 @@ private function step_until_tag_is_closed() { foreach ( $this->state->stack_of_open_elements->with_pop_listener( $tag_is_closed ) as $_ ) { // Find where the tag is closed by stepping forward until it's no longer on the stack of open elements. do { - $found_tag = $this->step(); + $found_tag = $this->step(); } while ( $found_tag && $keep_searching ); }