WordPress.org

Make WordPress Core

Changeset 34811


Ignore:
Timestamp:
10/03/2015 09:07:01 PM (4 years ago)
Author:
boonebgorges
Message:

Don't prime term meta cache in is_object_in_term().

Term meta is not necessary in this case, so priming the cache wastes a query.

See #10142, #32044.

File:
1 edited

Legend:

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

    r34809 r34811  
    43924392    $object_terms = get_object_term_cache( $object_id, $taxonomy );
    43934393    if ( false === $object_terms )
    4394          $object_terms = wp_get_object_terms( $object_id, $taxonomy );
     4394         $object_terms = wp_get_object_terms( $object_id, $taxonomy, array( 'update_term_meta_cache' => false ) );
    43954395
    43964396    if ( is_wp_error( $object_terms ) )
Note: See TracChangeset for help on using the changeset viewer.