Changeset 37573 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 05/26/2016 04:49:10 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r37545 r37573 312 312 if ( false === $terms ) { 313 313 $terms = wp_get_object_terms( $post->ID, $taxonomy_name ); 314 wp_cache_add( $post->ID, $terms, $taxonomy_name . '_relationships' );314 wp_cache_add( $post->ID, wp_list_pluck( $terms, 'term_id' ), $taxonomy_name . '_relationships' ); 315 315 } 316 316 $term_ids = empty( $terms ) ? array() : wp_list_pluck( $terms, 'term_id' );
Note: See TracChangeset
for help on using the changeset viewer.