WordPress.org

Make WordPress Core

Changeset 16691


Ignore:
Timestamp:
12/02/10 17:10:02 (7 years ago)
Author:
westi
Message:

Clean the cache when deleting a term. Fixes #15651

File:
1 edited

Legend:

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

    r16665 r16691  
    16051605    } 
    16061606 
     1607    // Clean the relationship caches for all object types using this term 
     1608    $tax_object = get_taxonomy( $taxonomy ); 
     1609    foreach ( $tax_object->object_type as $object_type ) 
     1610        clean_object_term_cache( $objects, $object_type );  
     1611     
    16071612    do_action( 'delete_term_taxonomy', $tt_id ); 
    16081613    $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->term_taxonomy WHERE term_taxonomy_id = %d", $tt_id ) ); 
Note: See TracChangeset for help on using the changeset viewer.