[wp-trac] [WordPress Trac] #9853: wp_dropdown_categories orderby
default 'ID' needs to be lowercase 'id'
WordPress Trac
wp-trac at lists.automattic.com
Sun May 17 21:34:48 GMT 2009
#9853: wp_dropdown_categories orderby default 'ID' needs to be lowercase 'id'
--------------------------+-------------------------------------------------
Reporter: alanft | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version: 2.8
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
problem
&get_terms in taxonomy.php will translate argument orderby 'id' correctly
to 't.term_id' (lines 682-683) but will leave ID as is, so the query fails
(as there is no ID to order by)
expected outcome
wp_dropdown_categories produces some output - currently it doesn't cos it
gets a blank list of categories unless you specify orderby when you call
it.
solution
change the default in wp_dropdown_categories (category-template.php) to
'id' (or make the check in taxonomy.php case-insensitive)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9853>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list