From 162c09d1cc9e41b6a48eb7b2b35b3554be19ba8a Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 20 Aug 2026 16:48:56 +0400 Subject: [PATCH] HTML API: Clarify parse_next_attribute() return value --- src/wp-includes/html-api/class-wp-html-tag-processor.php | 3 ++- 1 file changed, 2 insertions(+), 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 88487fb068d11..31d03cb81c610 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 @@ -2208,7 +2208,8 @@ private function parse_next_tag(): bool { * @since 6.2.0 * @ignore * - * @return bool Whether an attribute was found before the end of the document. + * @return bool Whether an attribute was found. Returns `false` upon reaching the end + * of the tag (`>` or `/>`) or the end of the document. */ private function parse_next_attribute(): bool { $doc_length = strlen( $this->html );