From eac35f6ae69a501763f00bb49a4cda0adfc307c7 Mon Sep 17 00:00:00 2001 From: dmsnell Date: Mon, 2 Sep 2024 22:03:15 +0000 Subject: [PATCH] HTML API: Add missing NOBR end tag handling to HTML Processor. When the HTML Processor was introduced, an oversight led to a missing case for handling a closing `NOBR` tag. The `NOBR` element is a deprecated tag and should not be used. This patch adds the missing case so that the deprecated `NOBR` end tag is appropriately handled. Developed in https://github.com/WordPress/wordpress-develop/pull/7282 Discussed in https://core.trac.wordpress.org/ticket/61576 Follow-up to [56274]. Props jonsurrell. See #61576. Built from https://develop.svn.wordpress.org/trunk@58967 git-svn-id: http://core.svn.wordpress.org/trunk@58363 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/html-api/class-wp-html-processor.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/html-api/class-wp-html-processor.php b/wp-includes/html-api/class-wp-html-processor.php index 7c47198142..b30acdc7f1 100644 --- a/wp-includes/html-api/class-wp-html-processor.php +++ b/wp-includes/html-api/class-wp-html-processor.php @@ -2415,6 +2415,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { case '-EM': case '-FONT': case '-I': + case '-NOBR': case '-S': case '-SMALL': case '-STRIKE': diff --git a/wp-includes/version.php b/wp-includes/version.php index e81ad0dced..4a05c4d81b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58966'; +$wp_version = '6.7-alpha-58967'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.