Changeset 35117 for trunk/src/wp-includes/taxonomy-functions.php
- Timestamp:
- 10/13/2015 02:57:21 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy-functions.php
r35032 r35117 1156 1156 $cache = wp_cache_get( $cache_key, 'terms' ); 1157 1157 if ( false !== $cache ) { 1158 if ( 'all' === $args['fields'] ) { 1159 $cache = array_map( 'get_term', $cache ); 1160 } 1158 1161 1159 1162 /** … … 1495 1498 $_terms[ $term->term_id ] = $term->slug; 1496 1499 } 1497 } else {1498 $_terms = array_map( 'get_term', $terms );1499 1500 } 1500 1501 … … 1508 1509 1509 1510 wp_cache_add( $cache_key, $terms, 'terms', DAY_IN_SECONDS ); 1511 1512 if ( 'all' === $_fields ) { 1513 $terms = array_map( 'get_term', $terms ); 1514 } 1510 1515 1511 1516 /** This filter is documented in wp-includes/taxonomy */
Note: See TracChangeset
for help on using the changeset viewer.