WordPress.org

Make WordPress Core

Ticket #28743: taxonomy.php.patch

File taxonomy.php.patch, 746 bytes (added by mwidmann, 6 years ago)
  • wp-includes/taxonomy.php

     
    34563456 *
    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 *
    34613463 * @param int|array    $object_ids  Single or list of term object ID(s).
    34623464 * @param array|string $object_type The taxonomy object type.
    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);
    34673475