From 4ba18baec2ebd545c4bd24cff6e862d9b578a559 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 Jul 2014 15:37:14 +0000 Subject: [PATCH] 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 --- src/wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index f76be29f45..f32fecf6f5 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -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";