Make WordPress Core

Ticket #8731: 8731.diff

File 8731.diff, 449 bytes (added by ryan, 16 years ago)
  • wp-includes/query.php

     
    20652065                }
    20662066
    20672067                if ( 'any' == $post_type ) {
    2068                         $where .= '';
     2068                        $where .= " AND $wpdb->posts.post_type != 'revision'";
    20692069                } elseif ( $this->is_attachment ) {
    20702070                        $where .= " AND $wpdb->posts.post_type = 'attachment'";
    20712071                } elseif ($this->is_page) {