Ticket #14880: 14880.diff
| File 14880.diff, 625 bytes (added by scribu, 3 years ago) |
|---|
-
wp-includes/query.php
1927 1927 if ( !empty( $tax_query ) ) { 1928 1928 $this->tax_query = $tax_query; 1929 1929 1930 $where .= " AND $wpdb->posts.ID IN( " . implode( ', ', wp_tax_query( $tax_query ) ) . ")"; 1930 $tax_found_posts = wp_tax_query( $tax_query ); 1931 1932 if ( empty( $tax_found_posts ) ) 1933 $where .= " AND 0 = 1"; 1934 else 1935 $where .= " AND $wpdb->posts.ID IN( " . implode( ', ', $tax_found_posts ) . ")"; 1931 1936 } 1932 1937 1933 1938 if ( !empty($q['meta_key']) ) {
