Changeset 31532 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 02/24/2015 04:36:26 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r31525 r31532 1575 1575 * Optional. Array or string of arguments to get terms. 1576 1576 * 1577 * @type string $orderbyField(s) to order terms by. Accepts term fields ('name', 'slug',1578 * 'term_group', 'term_id', 'id' ), 'count' for term taxonomy count,1579 * 'include' to match the 'order' of the $include param, or 'none'1580 * to skip ORDER BY. Defaults to 'name'.1581 * @type string $orderWhether to order terms in ascending or descending order.1577 * @type string $orderby Field(s) to order terms by. Accepts term fields ('name', 'slug', 1578 * 'term_group', 'term_id', 'id', 'description'), 'count' for term 1579 * taxonomy count, 'include' to match the 'order' of the $include param, 1580 * or 'none' to skip ORDER BY. Defaults to 'name'. 1581 * @type string $order Whether to order terms in ascending or descending order. 1582 1582 * Accepts 'ASC' (ascending) or 'DESC' (descending). 1583 1583 * Default 'ASC'. … … 1748 1748 } elseif ( 'term_group' == $_orderby ) { 1749 1749 $orderby = 't.term_group'; 1750 } elseif ( 'description' == $_orderby ) { 1751 $orderby = 'tt.description'; 1750 1752 } elseif ( 'none' == $_orderby ) { 1751 1753 $orderby = '';
Note: See TracChangeset
for help on using the changeset viewer.