Make WordPress Core


Ignore:
Timestamp:
01/11/2012 09:26:18 PM (12 years ago)
Author:
ryan
Message:

Use wp_cache_add() instead of wp_cache_set() when priming the object term cache in update_object_term_cache(). Pass the real post_type to clean_object_term_cache() instead of hard-coding post. Call clean_object_term_cache() from clean_bookmark_cache(). Props leewillis77. fixes #19690

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/bookmark.php

    r19712 r19729  
    376376 * @uses wp_cache_delete() Deletes the contents of 'get_bookmarks'
    377377 */
    378 function clean_bookmark_cache($bookmark_id) {
     378function clean_bookmark_cache( $bookmark_id ) {
    379379    wp_cache_delete( $bookmark_id, 'bookmark' );
    380380    wp_cache_delete( 'get_bookmarks', 'bookmark' );
    381 }
     381    clean_object_term_cache( $bookmark_id, 'link');
     382}
Note: See TracChangeset for help on using the changeset viewer.