[wp-trac] [WordPress Trac] #51855: wp_dropdown_categories allows multiple classes
WordPress Trac
noreply at wordpress.org
Tue Nov 24 12:17:38 UTC 2020
#51855: wp_dropdown_categories allows multiple classes
--------------------------+------------------------------
Reporter: tnash | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by SergeyBiryukov):
Hi there, welcome back to WordPress Trac! Thanks for the ticket.
Just noting this also appears to apply to:
* `wp_list_categories()`
* `wp_dropdown_page()`
* `wp_dropdown_users()`
On the other hand, `wp_list_bookmarks()` does use `sanitize_html_class()`,
see [32906] / #51666.
Not allowing multiple classes in the other functions would be a back-
compat break, they should at least allow for passing in an array of
classes, same as `wp_list_bookmarks()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51855#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list