Changeset 34998 for trunk/src/wp-includes/taxonomy-functions.php
- Timestamp:
- 10/10/2015 02:12:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy-functions.php
r34997 r34998 992 992 * @since 4.2.0 Introduced 'name' and 'childless' parameters. 993 993 * @since 4.4.0 Introduced the ability to pass 'term_id' as an alias of 'id' for the `orderby` parameter. 994 * Introduced the 'meta_query' and 'update_term_meta_cache' parameters. 994 * Introduced the 'meta_query' and 'update_term_meta_cache' parameters. Converted to return 995 * a list of WP_Term objects. 995 996 * 996 997 * @global wpdb $wpdb WordPress database abstraction object. … … 1053 1054 * See `WP_Meta_Query`. Default empty. 1054 1055 * } 1055 * @return array|int|WP_Error List of Term Objects and their children. Will return WP_Error, if any of $taxonomies1056 * do not exist.1056 * @return array|int|WP_Error List of WP_Term instances and their children. Will return WP_Error, if any of $taxonomies 1057 * do not exist. 1057 1058 */ 1058 1059 function get_terms( $taxonomies, $args = '' ) { … … 1494 1495 $_terms[ $term->term_id ] = $term->slug; 1495 1496 } 1497 } else { 1498 $_terms = array_map( 'get_term', $terms ); 1496 1499 } 1497 1500
Note: See TracChangeset
for help on using the changeset viewer.