Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#9853 closed defect (bug) (duplicate)

wp_dropdown_categories orderby default 'ID' needs to be lowercase 'id'

Reported by: alanft Owned by: filosofo
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Taxonomy Keywords:
Focuses: Cc:


&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.

change the default in wp_dropdown_categories (category-template.php) to 'id' (or make the check in taxonomy.php case-insensitive)

Change History (3)

#1 @Denis-de-Bernardy
7 years ago

  • Component changed from General to Taxonomy
  • Owner set to filosofo

#2 @MichaelH
7 years ago

This seems to be fixed by #9906 and [11428]

#3 @Denis-de-Bernardy
7 years ago

  • Milestone 2.8 deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.