- Timestamp:
- 03/06/2023 06:53:38 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php
r55407 r55469 776 776 } 777 777 778 $at += 2; 778 $closer_potentially_starts_at = $at; 779 $at += 2; 779 780 780 781 /* … … 819 820 820 821 if ( '>' === $html[ $at ] || '/' === $html[ $at ] ) { 821 ++$this->bytes_already_parsed;822 $this->bytes_already_parsed = $closer_potentially_starts_at; 822 823 return true; 823 824 } … … 888 889 889 890 if ( '/' === $html[ $at ] ) { 890 $is_closing = true; 891 $closer_potentially_starts_at = $at - 1; 892 $is_closing = true; 891 893 ++$at; 892 894 } else { … … 939 941 940 942 if ( $is_closing ) { 941 $this->bytes_already_parsed = $ at;943 $this->bytes_already_parsed = $closer_potentially_starts_at; 942 944 if ( $this->bytes_already_parsed >= $doc_length ) { 943 945 return false; … … 949 951 950 952 if ( '>' === $html[ $this->bytes_already_parsed ] ) { 951 ++$this->bytes_already_parsed;953 $this->bytes_already_parsed = $closer_potentially_starts_at; 952 954 return true; 953 955 }
Note: See TracChangeset
for help on using the changeset viewer.