[wp-trac] [WordPress Trac] #13258: wp_dropdown_categories() uses $term->id instead of $term->name for taxonomies that are not categories
WordPress Trac
wp-trac at lists.automattic.com
Fri May 7 03:09:11 UTC 2010
#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: 3.1
Component: Taxonomy | Version: 3.0
Severity: normal | Keywords: 2nd-opinion
-------------------------+--------------------------------------------------
Changes (by nacin):
* keywords: wp_dropdown_categories, tag, taxonomy, category => 2nd-
opinion
* type: defect (bug) => enhancement
* milestone: 3.0 => 3.1
Comment:
I want to move this to 3.1. I'm not really sure the best way to do
restructure this. Ultimately, the categories widget still only takes
categories. Ideally, we'd allow either a walker override, or the ability
to use the slug instead of the ID.
The slug instead of the ID should probably be default for non-category
taxonomies, which makes me want to revert taxonomy support for 3.0 from
wp_dropdown_categories, or at least force a check in the walker to use the
slug instead of the ID if it's a category. Then again, there are plenty of
use cases (the JS functionality of the widgets not one of them) for the
ID.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13258#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list