Changeset 37573 for trunk/src/wp-includes/category-template.php
- Timestamp:
- 05/26/2016 04:49:10 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/category-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r37571 r37573 1188 1188 $terms = wp_get_object_terms( $post->ID, $taxonomy ); 1189 1189 if ( ! is_wp_error( $terms ) ) { 1190 $to_cache = array(); 1191 foreach ( $terms as $key => $term ) { 1192 $to_cache[ $key ] = $term->data; 1193 } 1194 wp_cache_add( $post->ID, $to_cache, $taxonomy . '_relationships' ); 1195 } 1196 } 1197 1198 if ( ! is_wp_error( $terms ) ) { 1199 $terms = array_map( 'get_term', $terms ); 1190 $term_ids = wp_list_pluck( $terms, 'term_id' ); 1191 wp_cache_add( $post->ID, $term_ids, $taxonomy . '_relationships' ); 1192 } 1200 1193 } 1201 1194
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)