From e1a4234e8d75cdce3904e3c9d0d745f50111c017 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Wed, 31 Jul 2024 16:48:01 +0200 Subject: [PATCH] PICKME: Bugfix on ?-initial invalid comment texts --- src/wp-includes/html-api/class-wp-html-tag-processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/html-api/class-wp-html-tag-processor.php b/src/wp-includes/html-api/class-wp-html-tag-processor.php index c619806525732..1acb5ee15bcbc 100644 --- a/src/wp-includes/html-api/class-wp-html-tag-processor.php +++ b/src/wp-includes/html-api/class-wp-html-tag-processor.php @@ -1844,7 +1844,7 @@ private function parse_next_tag(): bool { $this->parser_state = self::STATE_COMMENT; $this->comment_type = self::COMMENT_AS_INVALID_HTML; $this->token_length = $closer_at + 1 - $this->token_starts_at; - $this->text_starts_at = $this->token_starts_at + 2; + $this->text_starts_at = $this->token_starts_at + 1; $this->text_length = $closer_at - $this->text_starts_at; $this->bytes_already_parsed = $closer_at + 1;