[wp-trac] [WordPress Trac] #64233: Command Palette: Use WP_HTML_Processor and WP_HTML_Decoder for menu labels and URLs
WordPress Trac
noreply at wordpress.org
Wed Nov 26 04:27:03 UTC 2025
#64233: Command Palette: Use WP_HTML_Processor and WP_HTML_Decoder for menu labels
and URLs
--------------------------------------------------+------------------------
Reporter: wildworks | Owner: wildworks
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing dev-reviewed | Focuses:
--------------------------------------------------+------------------------
Changes (by wildworks):
* owner: (none) => wildworks
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"61310" 61310]:
{{{
#!CommitTicketReference repository="" revision="61310"
Command Palette: Use HTML API for more reliable menu labels and URLs.
Replace regex-based HTML parsing with WP_HTML_Tag_Processor to properly
extract text nodes from menu labels. This ensures only root-level text
nodes are
collected.
Additionally, replace html_entity_decode() with
WP_HTML_Decoder::decode_attribute() with the menu URL for consistent
attribute decoding.
Follow-up to [61124], [61126], [61127], [61142].
Props: dmsnell, madhavishah01, peterwilsoncc, wildworks.
Fixes #64233.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64233#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list