Make WordPress Core

Changeset 58967


Ignore:
Timestamp:
09/02/2024 10:01:34 PM (2 years ago)
Author:
dmsnell
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/html-api/class-wp-html-processor.php

    r58966 r58967  
    24162416                        case '-FONT':
    24172417                        case '-I':
     2418                        case '-NOBR':
    24182419                        case '-S':
    24192420                        case '-SMALL':
Note: See TracChangeset for help on using the changeset viewer.