Skip to content

Commit

Permalink
Remove no-op condition (with possible null property access)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jan 3, 2025
1 parent aa39ded commit f49193c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wp-includes/html-api/class-wp-html-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3159,9 +3159,7 @@ private function step_in_body(): bool {
}

$this->generate_implied_end_tags( $token_name );
if ( $node !== $this->state->stack_of_open_elements->current_node() ) {
// @todo Record parse error: this error doesn't impact parsing.
}
// @todo record parse error if $node is not the current node.

foreach ( $this->state->stack_of_open_elements->walk_up() as $item ) {
$this->state->stack_of_open_elements->pop();
Expand Down

0 comments on commit f49193c

Please sign in to comment.