Respect $_wp_suspend_cache_invalidation in clean_object_term_cache().

Props mwidmann.
Fixes #35208.
Built from https://develop.svn.wordpress.org/trunk@36076


git-svn-id: http://core.svn.wordpress.org/trunk@36041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2015-12-23 19:29:28 +00:00
parent 421604cb67
commit 303efba1ec
2 changed files with 9 additions and 1 deletions

View File

@ -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);

View File

@ -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.