Changeset 10503 for trunk/wp-includes/query.php
- Timestamp:
- 02/04/2009 08:32:27 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r10150 r10503 2065 2065 } 2066 2066 2067 if ( $this->is_attachment ) { 2067 if ( 'any' == $post_type ) { 2068 $where .= ''; 2069 } elseif ( $this->is_attachment ) { 2068 2070 $where .= " AND $wpdb->posts.post_type = 'attachment'"; 2069 2071 } elseif ($this->is_page) { … … 2071 2073 } elseif ($this->is_single) { 2072 2074 $where .= " AND $wpdb->posts.post_type = 'post'"; 2073 } elseif ( 'any' == $post_type ) {2074 $where .= '';2075 2075 } else { 2076 2076 $where .= " AND $wpdb->posts.post_type = '$post_type'";
Note: See TracChangeset
for help on using the changeset viewer.