WordPress.org

Make WordPress Core

Changeset 36076


Ignore:
Timestamp:
12/23/2015 07:28:06 PM (4 years ago)
Author:
boonebgorges
Message:

Respect $_wp_suspend_cache_invalidation in clean_object_term_cache().

Props mwidmann.
Fixes #35208.

File:
1 edited

Legend:

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

    r36056 r36076  
    34573457 * @since 2.3.0
    34583458 *
     3459 * @global bool $_wp_suspend_cache_invalidation
     3460 *
    34593461 * @see get_object_taxonomies() for more on $object_type.
    34603462 *
     
    34633465 */
    34643466function clean_object_term_cache($object_ids, $object_type) {
     3467    global $_wp_suspend_cache_invalidation;
     3468
     3469    if ( ! empty( $_wp_suspend_cache_invalidation ) ) {
     3470        return;
     3471    }
     3472
    34653473    if ( !is_array($object_ids) )
    34663474        $object_ids = array($object_ids);
Note: See TracChangeset for help on using the changeset viewer.