diff --git a/wp-includes/html-api/class-wp-html-tag-processor.php b/wp-includes/html-api/class-wp-html-tag-processor.php index 7a53fbea1e..fcf418e856 100644 --- a/wp-includes/html-api/class-wp-html-tag-processor.php +++ b/wp-includes/html-api/class-wp-html-tag-processor.php @@ -1909,6 +1909,8 @@ class WP_HTML_Tag_Processor { if ( $this->is_closing_tag ) { // No chance of finding a closer. if ( $at + 3 > $doc_length ) { + $this->parser_state = self::STATE_INCOMPLETE_INPUT; + return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3cf817eb4a..ebb704edcb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58857'; +$wp_version = '6.7-alpha-58858'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.