- Timestamp:
- 06/27/2024 08:47:38 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-open-elements.php
r58441 r58588 309 309 public function pop() { 310 310 $item = array_pop( $this->stack ); 311 312 311 if ( null === $item ) { 313 312 return false; 314 313 } 315 314 315 if ( 'context-node' === $item->bookmark_name ) { 316 $this->stack[] = $item; 317 return false; 318 } 319 316 320 $this->after_element_pop( $item ); 317 321 return true; … … 330 334 public function pop_until( $tag_name ) { 331 335 foreach ( $this->walk_up() as $item ) { 336 if ( 'context-node' === $item->bookmark_name ) { 337 return true; 338 } 339 332 340 $this->pop(); 333 341 … … 370 378 */ 371 379 public function remove_node( $token ) { 380 if ( 'context-node' === $token->bookmark_name ) { 381 return false; 382 } 383 372 384 foreach ( $this->walk_up() as $position_from_end => $item ) { 373 385 if ( $token->bookmark_name !== $item->bookmark_name ) {
Note: See TracChangeset
for help on using the changeset viewer.