diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index a1d6e04686..aea48ca297 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -3456,12 +3456,20 @@ function wp_update_term_count_now( $terms, $taxonomy ) { * * @since 2.3.0 * + * @global bool $_wp_suspend_cache_invalidation + * * @see get_object_taxonomies() for more on $object_type. * * @param int|array $object_ids Single or list of term object ID(s). * @param array|string $object_type The taxonomy object type. */ function clean_object_term_cache($object_ids, $object_type) { + global $_wp_suspend_cache_invalidation; + + if ( ! empty( $_wp_suspend_cache_invalidation ) ) { + return; + } + if ( !is_array($object_ids) ) $object_ids = array($object_ids); diff --git a/wp-includes/version.php b/wp-includes/version.php index 5510cb77f2..5cd28bd468 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36075'; +$wp_version = '4.5-alpha-36076'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.