Ticket #19690: 19690.2.diff
File 19690.2.diff, 1.8 KB (added by , 13 years ago) |
---|
-
wp-includes/taxonomy.php
2657 2657 $object_terms[$term->object_id][$term->taxonomy][$term->term_id] = $term; 2658 2658 2659 2659 foreach ( $ids as $id ) { 2660 foreach ( $taxonomies 2660 foreach ( $taxonomies as $taxonomy ) { 2661 2661 if ( ! isset($object_terms[$id][$taxonomy]) ) { 2662 2662 if ( !isset($object_terms[$id]) ) 2663 2663 $object_terms[$id] = array(); … … 2668 2668 2669 2669 foreach ( $object_terms as $id => $value ) { 2670 2670 foreach ( $value as $taxonomy => $terms ) { 2671 wp_cache_ set($id, $terms, "{$taxonomy}_relationships");2671 wp_cache_add( $id, $terms, "{$taxonomy}_relationships" ); 2672 2672 } 2673 2673 } 2674 2674 } -
wp-includes/post.php
4330 4330 if ( 0 === $id ) 4331 4331 return; 4332 4332 4333 $post = get_post( $id ); 4334 4333 4335 wp_cache_delete($id, 'posts'); 4334 4336 wp_cache_delete($id, 'post_meta'); 4335 4337 4336 clean_object_term_cache( $id, 'post');4338 clean_object_term_cache( $id, $post->post_type ); 4337 4339 4338 4340 wp_cache_delete( 'wp_get_archives', 'general' ); 4339 4341 -
wp-includes/bookmark.php
375 375 * @since 2.7.0 376 376 * @uses wp_cache_delete() Deletes the contents of 'get_bookmarks' 377 377 */ 378 function clean_bookmark_cache( $bookmark_id) {378 function clean_bookmark_cache( $bookmark_id ) { 379 379 wp_cache_delete( $bookmark_id, 'bookmark' ); 380 380 wp_cache_delete( 'get_bookmarks', 'bookmark' ); 381 clean_object_term_cache( $bookmark_id, 'link'); 381 382 }