Skip to content

Commit

Permalink
Restore original bookmark matching
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Nov 5, 2024
1 parent 89aa01b commit 737bf92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wp-includes/html-api/class-wp-html-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5377,8 +5377,7 @@ public function seek( $bookmark_name ): bool {
if ( $this->is_virtual() ) {
continue;
}
$bm = $this->bookmarks[ $this->current_element->token->bookmark_name ];
if ( $bookmark_starts_at === $bm->start ) {
if ( $bookmark_starts_at === $this->bookmarks[ $this->state->current_token->bookmark_name ]->start ) {
while ( isset( $this->current_element ) && WP_HTML_Stack_Event::POP === $this->current_element->operation ) {
$this->current_element = array_shift( $this->element_queue );
}
Expand Down

0 comments on commit 737bf92

Please sign in to comment.