~canonical-sysadmins/wordpress/5.0.2

« back to all changes in this revision

Viewing changes to wp-includes/class-wp-term-query.php

  • Committer: Barry Price
  • Date: 2018-07-06 10:06:19 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: barry.price@canonical.com-20180706100619-g8mbdb7wvr0aamb5
Merge WP4.9.7 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
671
671
                $cache_key = "get_terms:$key:$last_changed";
672
672
                $cache = wp_cache_get( $cache_key, 'terms' );
673
673
                if ( false !== $cache ) {
674
 
                        if ( 'all' === $_fields ) {
 
674
                        if ( 'all' === $_fields || 'all_with_object_id' === $_fields ) {
675
675
                                $cache = array_map( 'get_term', $cache );
676
676
                        }
677
677