Ticket #31364: 31364.diff
File 31364.diff, 1.5 KB (added by , 10 years ago) |
---|
-
wp-includes/taxonomy.php
1557 1557 * 1558 1558 * @type string $orderby Field(s) to order terms by. Accepts term fields ('name', 'slug', 1559 1559 * 'term_group', 'term_id', 'id'), 'count' for term taxonomy count, 1560 * 'include' to match the 'order' of the $include param, or 'none' 1561 * to skip ORDER BY. Defaults to 'name'. 1560 * 'description' for term taxonomy description, 'include' to match 1561 * the 'order' of the $include param, or 'none' to skip ORDER BY. 1562 * Defaults to 'name'. 1562 1563 * @type string $order Whether to order terms in ascending or descending order. 1563 1564 * Accepts 'ASC' (ascending) or 'DESC' (descending). 1564 1565 * Default 'ASC'. … … 1698 1699 $_orderby = strtolower( $args['orderby'] ); 1699 1700 if ( 'count' == $_orderby ) { 1700 1701 $orderby = 'tt.count'; 1702 } elseif ( 'description' == $_orderby ) { 1703 $orderby = 'tt.description'; 1701 1704 } elseif ( 'name' == $_orderby ) { 1702 1705 $orderby = 't.name'; 1703 1706 } elseif ( 'slug' == $_orderby ) {