Changeset 15650
- Timestamp:
- 09/23/2010 11:19:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r15649 r15650 1830 1830 } 1831 1831 } 1832 1833 if ( empty($post_type) ) {1834 $post_type = 'any';1835 $post_status_join = true;1836 } elseif ( in_array('attachment', (array) $post_type) ) {1837 $post_status_join = true;1838 }1839 1832 } 1840 1833 … … 1921 1914 if ( !empty( $tax_query ) ) { 1922 1915 $this->tax_query = $tax_query; 1916 1917 if ( empty($post_type) ) { 1918 $post_type = 'any'; 1919 $post_status_join = true; 1920 } elseif ( in_array('attachment', (array) $post_type) ) { 1921 $post_status_join = true; 1922 } 1923 1923 1924 1924 $where .= " AND $wpdb->posts.ID IN( " . implode( ', ', wp_tax_query( $tax_query ) ) . ")";
Note: See TracChangeset
for help on using the changeset viewer.