Make WordPress Core

Ticket #8870: query.diff

File query.diff, 536 bytes (added by mrmist, 18 years ago)

query.php patch based on ticket comments

  • wp-includes/query.php

     
    20702070                        $where .= " AND $wpdb->posts.post_type = 'page'";
    20712071                } elseif ($this->is_single) {
    20722072                        $where .= " AND $wpdb->posts.post_type = 'post'";
    2073                 } elseif ( 'any' == $post_type ) {
     2073                } elseif ( 'any' == $post_type ||  $this->is_author ) {
    20742074                        $where .= '';
    20752075                } else {
    20762076                        $where .= " AND $wpdb->posts.post_type = '$post_type'";