Commit d2d8bb2365 for wordpress.org
commit d2d8bb2365d1fefc93b868f2c58ad0538a63d58b
Author: jonsurrell <jonsurrell@git.wordpress.org>
Date: Mon Sep 7 11:50:48 2026 +0000
HTML API: Clarify parse_next_attribute() return value.
Developed in: https://github.com/WordPress/wordpress-develop/pull/13203
Follow-up to r62595.
Props jonsurrell, dmsnell.
See #65860, #65372.
Built from https://develop.svn.wordpress.org/trunk@63515
git-svn-id: http://core.svn.wordpress.org/trunk@62691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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 4e3063f5bd..b59baaf5a8 100644
--- a/wp-includes/html-api/class-wp-html-tag-processor.php
+++ b/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -2202,7 +2202,8 @@ class WP_HTML_Tag_Processor {
* @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 );
diff --git a/wp-includes/version.php b/wp-includes/version.php
index f63145e1de..99d6aedca3 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-alpha-63514';
+$wp_version = '7.2-alpha-63515';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.