diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 9ebc9d0d0b..94f36689fd 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -2282,6 +2282,7 @@ function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) { } wp_cache_delete( $object_id, $taxonomy . '_relationships' ); + wp_cache_delete( 'last_changed', 'terms' ); /** * Fires after an object's terms have been set. @@ -2376,6 +2377,7 @@ function wp_remove_object_terms( $object_id, $terms, $taxonomy ) { $deleted = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->term_relationships WHERE object_id = %d AND term_taxonomy_id IN ($in_tt_ids)", $object_id ) ); wp_cache_delete( $object_id, $taxonomy . '_relationships' ); + wp_cache_delete( 'last_changed', 'terms' ); /** * Fires immediately after an object-term relationship is deleted. diff --git a/wp-includes/version.php b/wp-includes/version.php index fb29cc5c6e..a20de0c87a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40352'; +$wp_version = '4.8-alpha-40353'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.