Changeset 33903 for trunk/src/wp-includes/taxonomy-functions.php
- Timestamp:
- 09/04/2015 09:16:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy-functions.php
r33760 r33903 946 946 * @since 2.3.0 947 947 * @since 4.2.0 Introduced 'name' and 'childless' parameters. 948 * @since 4.4.0 Introduced the ability to pass 'term_id' as an alias of 'id' for the `orderby` parameter. 948 949 * 949 950 * @global wpdb $wpdb WordPress database abstraction object. … … 1133 1134 } elseif ( 'none' == $_orderby ) { 1134 1135 $orderby = ''; 1135 } elseif ( empty( $_orderby) || 'id'== $_orderby ) {1136 } elseif ( empty( $_orderby ) || 'id' == $_orderby || 'term_id' === $_orderby ) { 1136 1137 $orderby = 't.term_id'; 1137 1138 } else {
Note: See TracChangeset
for help on using the changeset viewer.