Ticket #7539: 7539.diff
File 7539.diff, 877 bytes (added by , 16 years ago) |
---|
-
wp-includes/taxonomy.php
522 522 * 523 523 * The list of arguments that $args can contain, which will overwrite the defaults: 524 524 * 525 * orderby - Default is 'name'. Can be name, count, or nothing (will use 526 * term_id). 525 * orderby - Default is 'name'. Can be name, count, term_group, slug or nothing 526 * (will use term_id), Passing a custom value other than these will cause it to 527 * order based on the custom value. 527 528 * 528 529 * order - Default is ASC. Can use DESC. 529 530 * … … 661 662 $orderby = 't.slug'; 662 663 else if ( 'term_group' == $orderby ) 663 664 $orderby = 't.term_group'; 664 else 665 else if ( empty($orderby) || 'id' == $orderby ) 665 666 $orderby = 't.term_id'; 666 667 667 668 $where = '';