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 ab0b88693a..31352d2e88 100644 --- a/wp-includes/html-api/class-wp-html-tag-processor.php +++ b/wp-includes/html-api/class-wp-html-tag-processor.php @@ -1815,6 +1815,7 @@ class WP_HTML_Tag_Processor { * For string attributes, the value is escaped using the `esc_attr` function. * * @since 6.2.0 + * @since 6.2.1 Fix: Only create a single update for multiple calls with case-variant attribute names. * * @param string $name The attribute name to target. * @param string|bool $value The new attribute value. @@ -1907,8 +1908,8 @@ class WP_HTML_Tag_Processor { * * Result:
*/ - $existing_attribute = $this->attributes[ $comparable_name ]; - $this->lexical_updates[ $name ] = new WP_HTML_Text_Replacement( + $existing_attribute = $this->attributes[ $comparable_name ]; + $this->lexical_updates[ $comparable_name ] = new WP_HTML_Text_Replacement( $existing_attribute->start, $existing_attribute->end, $updated_attribute diff --git a/wp-includes/version.php b/wp-includes/version.php index e35a4f0ef6..b93cfbf596 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55658'; +$wp_version = '6.3-alpha-55659'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.