Changeset 56555 for trunk/src/wp-includes/class-wp-term-query.php
- Timestamp:
- 09/11/2023 11:35:59 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term-query.php
r55671 r56555 739 739 $limits = isset( $clauses['limits'] ) ? $clauses['limits'] : ''; 740 740 741 $fields_is_filtered = implode( ', ', $selects ) !== $fields; 742 741 743 if ( $where ) { 742 744 $where = "WHERE $where"; … … 783 785 } elseif ( 'count' !== $_fields ) { 784 786 if ( ( 'all_with_object_id' === $_fields && ! empty( $args['object_ids'] ) ) 785 || ( 'all' === $_fields && $args['pad_counts'] )787 || ( 'all' === $_fields && $args['pad_counts'] || $fields_is_filtered ) 786 788 ) { 787 789 $term_ids = wp_list_pluck( $cache, 'term_id' ); … … 885 887 $term_cache[] = $object; 886 888 } 889 } elseif ( $fields_is_filtered ) { 890 $term_cache = $term_objects; 887 891 } else { 888 892 $term_cache = wp_list_pluck( $term_objects, 'term_id' );
Note: See TracChangeset
for help on using the changeset viewer.