Changeset 60983
- Timestamp:
- 10/20/2025 09:11:46 AM (5 weeks ago)
- File:
-
- 1 edited
- trunk/src/wp-includes/class-wp-block.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block.php
r60951 r60983 445 445 } 446 446 447 $depth = $this->get_current_depth(); 448 449 $this->set_bookmark( '_wp_block_bindings_tag_opener' ); 447 $depth = $this->get_current_depth(); 448 $tag_name = $this->get_tag(); 449 450 $this->set_bookmark( '_wp_block_bindings' ); 450 451 // The bookmark names are prefixed with `_` so the key below has an extra `_`. 451 $tag_opener = $this->bookmarks['__wp_block_bindings _tag_opener'];452 $tag_opener = $this->bookmarks['__wp_block_bindings']; 452 453 $start = $tag_opener->start + $tag_opener->length; 453 $this->release_bookmark( '_wp_block_bindings_tag_opener' );454 454 455 455 // Find matching tag closer. … … 457 457 } 458 458 459 $this->set_bookmark( '_wp_block_bindings_tag_closer' ); 460 $tag_closer = $this->bookmarks['__wp_block_bindings_tag_closer']; 459 if ( ! $this->is_tag_closer() || $tag_name !== $this->get_tag() ) { 460 return false; 461 } 462 463 $this->set_bookmark( '_wp_block_bindings' ); 464 $tag_closer = $this->bookmarks['__wp_block_bindings']; 461 465 $end = $tag_closer->start; 462 $this->release_bookmark( '_wp_block_bindings_tag_closer' );463 466 464 467 $this->lexical_updates[] = new WP_HTML_Text_Replacement(
Note: See TracChangeset for help on using the changeset viewer.