Changeset 61048 for trunk/src/wp-includes/class-wp-term-query.php
- Timestamp:
- 10/22/2025 04:28:33 PM (13 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-term-query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term-query.php
r60697 r61048 471 471 $include = $args['include']; 472 472 473 $inclusions = '';474 473 if ( ! empty( $include ) ) { 475 474 $exclude = ''; 476 475 $exclude_tree = ''; 477 476 $inclusions = implode( ',', wp_parse_id_list( $include ) ); 478 } 479 480 if ( ! empty( $inclusions ) ) { 477 481 478 $this->sql_clauses['where']['inclusions'] = 't.term_id IN ( ' . $inclusions . ' )'; 482 479 } … … 816 813 817 814 if ( empty( $terms ) ) { 815 $this->terms = array(); 816 818 817 if ( $args['cache_results'] ) { 819 wp_cache_set_salted( $cache_key, array(), 'term-queries', $last_changed ); 820 } 821 return array(); 818 wp_cache_set_salted( $cache_key, $this->terms, 'term-queries', $last_changed ); 819 } 820 821 return $this->terms; 822 822 } 823 823
Note:
See TracChangeset
for help on using the changeset viewer.