[wp-trac] [WordPress Trac] #13258: wp_dropdown_categories() uses $term->id instead of $term->name for taxonomies that are not categories

WordPress Trac noreply at wordpress.org
Fri May 24 15:55:59 UTC 2013


#13258: wp_dropdown_categories() uses $term->id instead of $term->name for
taxonomies that are not categories
-------------------------------------------------+-------------------------
 Reporter:  mfields                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Taxonomy                             |  Release
 Severity:  normal                               |     Version:  3.0
 Keywords:  2nd-opinion has-patch needs-testing  |  Resolution:
-------------------------------------------------+-------------------------
Changes (by zaharamh):

 * cc: zaharamh (added)
 * keywords:  2nd-opinion has-patch => 2nd-opinion has-patch needs-testing


Comment:

 Stephen1988's patch seems to create several issues:
 * breaks the "selected" argument
 * adds a "show_last_update" argument that returns an error since no such
 argument exists
 I fixed those two things and also tested the patch, but I am not sure it
 is in working condition yet. Issues I find
 * it will break if you don't set the "name" argument with the taxonomy's
 slug
 * it will break if you set value to "term_id" when using anything other
 than category (is the possibility of having an option really needed, or
 wouldn't it be better to just have it default to id for categories and
 slug for other taxonomies?)

--
Ticket URL: <http://core.trac.wordpress.org/ticket/13258#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list