Ticket #10807: 10807.diff
File 10807.diff, 595 bytes (added by , 15 years ago) |
---|
-
wp-includes/query.php
2076 2076 $where .= " AND $wpdb->posts.post_type = '$post_type'"; 2077 2077 } elseif ( $this->is_attachment ) { 2078 2078 $where .= " AND $wpdb->posts.post_type = 'attachment'"; 2079 $post_type = 'attachment'; 2079 2080 } elseif ($this->is_page) { 2080 2081 $where .= " AND $wpdb->posts.post_type = 'page'"; 2082 $post_type = 'page'; 2081 2083 } else { 2082 2084 $where .= " AND $wpdb->posts.post_type = 'post'"; 2083 2085 $post_type = 'post';