[wp-trac] Re: [WordPress Trac] #6523: get_terms() bug

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 1 08:38:53 GMT 2008


#6523: get_terms() bug
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  anonymous
     Type:  defect             |       Status:  new      
 Priority:  normal             |    Milestone:  2.5.1    
Component:  General            |      Version:  2.5      
 Severity:  major              |   Resolution:           
 Keywords:                     |  
-------------------------------+--------------------------------------------
Comment (by Denis-de-Bernardy):

 it should go like this:


 {{{
         if ( 'count' == $orderby )
                 $orderby = 'tt.count';
         else if ( 'name' == $orderby )
                 $orderby = 't.name';
         else if ( 'slug' == $orderby )
                 $orderby = 't.slug';
         else if ( 'term_group' == $orderby )
                 $orderby = 't.term_group';
         else if ( 'term_order' == $orderby )
                 $orderby = 'tr.term_order';
         else
                 $orderby = 't.term_id';

 }}}

 (the term_order case is missing)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6523#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list