Ticket #31086: 31086.patch
| File 31086.patch, 1.0 KB (added by , 11 years ago) |
|---|
-
wp-includes/category-template.php
1305 1305 1306 1306 $terms = get_object_term_cache( $post->ID, $taxonomy ); 1307 1307 if ( false === $terms ) { 1308 $terms = wp_get_object_terms( $post->ID, $taxonomy );1308 $terms = wp_get_object_terms( $post->ID, $taxonomy, array('fields' => 'all_with_object_id') ); 1309 1309 wp_cache_add($post->ID, $terms, $taxonomy . '_relationships'); 1310 1310 } 1311 1311 -
wp-includes/taxonomy.php
3783 3783 3784 3784 $object_terms = array(); 3785 3785 foreach ( (array) $terms as $term ) 3786 $object_terms[$term->object_id][$term->taxonomy][ $term->term_id] = $term;3786 $object_terms[$term->object_id][$term->taxonomy][] = $term; 3787 3787 3788 3788 foreach ( $ids as $id ) { 3789 3789 foreach ( $taxonomies as $taxonomy ) {