diff --git a/wp-includes/html-api/class-wp-html-processor.php b/wp-includes/html-api/class-wp-html-processor.php index 0ca7a52a2a..28e5c150a8 100644 --- a/wp-includes/html-api/class-wp-html-processor.php +++ b/wp-includes/html-api/class-wp-html-processor.php @@ -4727,17 +4727,13 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { $tag_name = parent::get_tag(); - switch ( $tag_name ) { - case 'IMAGE': - /* - * > A start tag whose tag name is "image" - * > Change the token's tag name to "img" and reprocess it. (Don't ask.) - */ - return 'IMG'; - - default: - return $tag_name; - } + /* + * > A start tag whose tag name is "image" + * > Change the token's tag name to "img" and reprocess it. (Don't ask.) + */ + return ( 'IMAGE' === $tag_name && 'html' === $this->get_namespace() ) + ? 'IMG' + : $tag_name; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 4200c928d8..016652f55b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59013'; +$wp_version = '6.7-alpha-59014'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.