- Timestamp:
- 11/06/2024 07:22:22 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r59285 r59364 617 617 */ 618 618 public function next_token(): bool { 619 return $this-> _next_token();619 return $this->next_visitable_token(); 620 620 } 621 621 … … 628 628 * WP_HTML_Tag_Processor instead. 629 629 * 630 * @since 6.7.1 Added for internal support; do not use. 630 * Note that this method may call itself recursively. This is why it is not 631 * implemented as {@see WP_HTML_Processor::next_token()}, which instead calls 632 * this method similarly to how {@see WP_HTML_Tag_Processor::next_token()} 633 * calls the {@see WP_HTML_Tag_Processor::base_class_next_token()} method. 634 * 635 * @since 6.7.1 Added for internal support. 631 636 * 632 637 * @access private … … 634 639 * @return bool 635 640 */ 636 private function _next_token(): bool {641 private function next_visitable_token(): bool { 637 642 $this->current_element = null; 638 643 … … 652 657 */ 653 658 if ( empty( $this->element_queue ) && $this->step() ) { 654 return $this-> _next_token();659 return $this->next_visitable_token(); 655 660 } 656 661 … … 663 668 } 664 669 665 return empty( $this->element_queue ) ? false : $this-> _next_token();670 return empty( $this->element_queue ) ? false : $this->next_visitable_token(); 666 671 } 667 672 … … 674 679 */ 675 680 if ( 'root-node' === $this->current_element->token->bookmark_name ) { 676 return $this-> _next_token();681 return $this->next_visitable_token(); 677 682 } 678 683 … … 686 691 // Avoid sending close events for elements which don't expect a closing. 687 692 if ( $is_pop && ! $this->expects_closer( $this->current_element->token ) ) { 688 return $this-> _next_token();693 return $this->next_visitable_token(); 689 694 } 690 695
Note: See TracChangeset
for help on using the changeset viewer.