[wp-trac] [WordPress Trac] #19851: wp_dropdown_categories should add category slug as class to each option.
WordPress Trac
noreply at wordpress.org
Fri Jan 2 21:41:17 UTC 2015
#19851: wp_dropdown_categories should add category slug as class to each option.
--------------------------+-----------------------
Reporter: jackreichert | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version:
Severity: minor | Resolution: wontfix
Keywords: has-patch | Focuses: template
--------------------------+-----------------------
Changes (by boonebgorges):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
The suggestion in [comment:1 comment 1] was implemented in [31006].
`wp_dropdown_categories()` now accepts a 'value_field' parameter, which
allows the option values to be set as 'slug' (or any other term property)
instead of the term ID. See #30306.
Since this provides a reliable way to render dropdowns in an ID-
independent way, I'm going to mark this ticket as wontfix. If anyone has
independent use cases for wanting slug-based classes on `<option>`
elements, feel free to reopen with details.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19851#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list