[wp-trac] [WordPress Trac] #16677: wp_dropdown_categories() shows the wrong name/id when $taxonomy argument is set

WordPress Trac noreply at wordpress.org
Sun May 17 01:58:03 UTC 2015


#16677: wp_dropdown_categories() shows the wrong name/id when $taxonomy argument is
set
-------------------------+----------------------
 Reporter:  ramiy        |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Taxonomy     |     Version:  3.1
 Severity:  normal       |  Resolution:  wontfix
 Keywords:  has-patch    |     Focuses:
-------------------------+----------------------
Changes (by boonebgorges):

 * status:  reopened => closed
 * resolution:   => wontfix
 * milestone:  Future Release =>


Comment:

 I don't think we can fix this in `wp_dropdown_categories()`. Changing the
 default value will break any form using `wp_dropdown_categories()` for a
 custom taxonomy and using the default value of 'name'. If we build
 `wp_dropdown_terms()`, we can and should have more intelligent defaults,
 but I think we're stuck with what we've got for
 `wp_dropdown_categories()`. In the meantime, plugin devs should pass
 'name' and 'id' params explicitly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16677#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list