Make WordPress Core

Changeset 35268


Ignore:
Timestamp:
10/19/2015 01:52:22 AM (9 years ago)
Author:
boonebgorges
Message:

Bust object term cache in wp_remove_object_terms().

Props tszming.
Fixes #34338.

Location:
trunk
Files:
1 added
1 edited

Legend:

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

    r35227 r35268  
    29092909        $deleted = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->term_relationships WHERE object_id = %d AND term_taxonomy_id IN ($in_tt_ids)", $object_id ) );
    29102910
     2911        wp_cache_delete( $object_id, $taxonomy . '_relationships' );
     2912
    29112913        /**
    29122914         * Fires immediately after an object-term relationship is deleted.
Note: See TracChangeset for help on using the changeset viewer.