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 3cdbd91480..31c4bc8a10 100644
--- a/wp-includes/html-api/class-wp-html-tag-processor.php
+++ b/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -2342,10 +2342,12 @@ class WP_HTML_Tag_Processor {
}
if ( false === $existing_class && isset( $this->attributes['class'] ) ) {
- $existing_class = substr(
- $this->html,
- $this->attributes['class']->value_starts_at,
- $this->attributes['class']->value_length
+ $existing_class = WP_HTML_Decoder::decode_attribute(
+ substr(
+ $this->html,
+ $this->attributes['class']->value_starts_at,
+ $this->attributes['class']->value_length
+ )
);
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 11978d4d94..bcfed318d0 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.0-alpha-61342';
+$wp_version = '7.0-alpha-61346';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.