WordPress.org

Make WordPress Core

Changeset 6288


Ignore:
Timestamp:
10/24/07 17:07:04 (7 years ago)
Author:
ryan
Message:

Update clean_object_term_cache() to clear for each taxonomy

File:
1 edited

Legend:

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

    r6286 r6288  
    13641364 
    13651365    foreach ( $object_ids as $id ) 
    1366         wp_cache_delete($id, 'object_terms'); 
     1366        foreach ( get_object_taxonomies($object_type) as $taxonomy ) 
     1367            wp_cache_delete($id, "{$taxonomy}_relationships"); 
    13671368 
    13681369    do_action('clean_object_term_cache', $object_ids, $object_type); 
Note: See TracChangeset for help on using the changeset viewer.