Remove a redundant condition for comment feeds from WP_Query::get_posts().

props engelen.
fixes #28401.

git-svn-id: https://develop.svn.wordpress.org/trunk@29257 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-07-21 15:37:14 +00:00
parent 0c3d0214cb
commit 4ba18baec2
1 changed files with 1 additions and 1 deletions

View File

@ -3057,7 +3057,7 @@ class WP_Query {
}
// Comments feeds
if ( $this->is_comment_feed && ( $this->is_archive || ( $this->is_search && ! empty( $q['s'] ) ) || !$this->is_singular ) ) {
if ( $this->is_comment_feed && ! $this->is_singular ) {
if ( $this->is_archive || $this->is_search ) {
$cjoin = "JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) $join ";
$cwhere = "WHERE comment_approved = '1' $where";