Ticket #5245: 5245-2.diff

File 5245-2.diff, 559 bytes (added by andy, 4 years ago)
  • wp-includes/taxonomy.php

     
    10291029                $orderby = 'tt.count'; 
    10301030        else if ( 'name' == $orderby ) 
    10311031                $orderby = 't.name'; 
     1032        else if ( 'slug' == $orderby ) 
     1033                $orderby = 't.slug'; 
     1034        else if ( 'term_group' == $orderby ) 
     1035                $orderby = 't.term_group'; 
     1036        else 
     1037                $orderby = 't.term_id'; 
    10321038 
    10331039        $taxonomies = "'" . implode("', '", $taxonomies) . "'"; 
    10341040        $object_ids = implode(', ', $object_ids);