[wp-trac] [WordPress Trac] #9906: get_terms() orderby broken in some cases

WordPress Trac wp-trac at lists.automattic.com
Fri May 22 07:38:29 GMT 2009


#9906: get_terms() orderby broken in some cases
--------------------------+-------------------------------------------------
 Reporter:  dd32          |       Owner:  filosofo 
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  Taxonomy      |     Version:  2.8      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 [11250] introduced a bit of a bug.. $orderby in the past has been set to
 an upper case 'ID', which was fine, since it droped through to the else
 case..

 Now however.. It doesnt, It drops through and adds a 'ORDER BY ID'
 remark..

 attached patch works off a lower case'd string, as well as fixing one
 instance where orderby=ID is defaulted to.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9906>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list