- Timestamp:
- 06/01/2026 10:38:30 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php
r62359 r62439 1425 1425 1426 1426 // Fail if there is no possible tag closer. 1427 if ( false === $at || ( $at + $tag_length ) >= $doc_length ) {1427 if ( false === $at || ( $at + 2 + $tag_length ) >= $doc_length ) { 1428 1428 return false; 1429 1429 } … … 1816 1816 // Abruptly-closed empty comments are a sequence of dashes followed by `>`. 1817 1817 $span_of_dashes = strspn( $html, '-', $closer_at ); 1818 if ( $doc_length <= $span_of_dashes + $closer_at ) { 1819 $this->parser_state = self::STATE_INCOMPLETE_INPUT; 1820 1821 return false; 1822 } 1823 1818 1824 if ( '>' === $html[ $closer_at + $span_of_dashes ] ) { 1819 1825 /*
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)