Changeset 35032 for trunk/src/wp-includes/category-template.php
- Timestamp:
- 10/12/2015 03:12:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r34696 r35032 1138 1138 if ( false === $terms ) { 1139 1139 $terms = wp_get_object_terms( $post->ID, $taxonomy ); 1140 wp_cache_add($post->ID, $terms, $taxonomy . '_relationships'); 1141 } 1140 $to_cache = array(); 1141 foreach ( $terms as $key => $term ) { 1142 $to_cache[ $key ] = $term->data; 1143 } 1144 wp_cache_add( $post->ID, $to_cache, $taxonomy . '_relationships' ); 1145 } 1146 1147 $terms = array_map( 'get_term', $terms ); 1142 1148 1143 1149 /**
Note: See TracChangeset
for help on using the changeset viewer.