WordPress.org

Make WordPress Core

Ticket #7539: get_terms_order.diff

File get_terms_order.diff, 383 bytes (added by gimler, 10 years ago)
  • wp-includes/taxonomy.php

     
    617617                $orderby = 't.slug';
    618618        else if ( 'term_group' == $orderby )
    619619                $orderby = 't.term_group';
    620         else
     620        else if (!isset($orderby))
    621621                $orderby = 't.term_id';
    622622
    623623        $where = '';