[wp-trac] [WordPress Trac] #49374: Use get_post_states to denote special pages on the added menu item accordions
WordPress Trac
noreply at wordpress.org
Fri Mar 13 17:00:50 UTC 2020
#49374: Use get_post_states to denote special pages on the added menu item
accordions
-------------------------------------------------+-------------------------
Reporter: garrett-eclipse | Owner:
| SergeyBiryukov
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.4
Component: Menus | Version: 5.3
Severity: normal | Resolution:
Keywords: has-patch has-screenshots needs- | Focuses: ui,
testing | administration
-------------------------------------------------+-------------------------
Changes (by stiofansisland):
* status: closed => reopened
* resolution: fixed =>
Comment:
In the original use case for the get_post_states() function to add
statuses to the pages backend is not escaped, this allowed several
plugins to add hints to the output:
[[Image(https://i.imgur.com/IvlbXQA.png)]]
Now in the edit menu screen it is escaped which causes issues:
[[Image(https://i.imgur.com/cYbF6sz.png)]]
I would be nice to keep the hints but if not an option then esc_html()
should be replaced with wp_strip_all_tags()
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49374#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list