Ticket #8731: 8731.diff
File 8731.diff, 449 bytes (added by , 16 years ago) |
---|
-
wp-includes/query.php
2065 2065 } 2066 2066 2067 2067 if ( 'any' == $post_type ) { 2068 $where .= '';2068 $where .= " AND $wpdb->posts.post_type != 'revision'"; 2069 2069 } elseif ( $this->is_attachment ) { 2070 2070 $where .= " AND $wpdb->posts.post_type = 'attachment'"; 2071 2071 } elseif ($this->is_page) {