From b3f6108438ca3849b94db042a61b6d60d845f22c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 Jul 2014 15:38:14 +0000 Subject: [PATCH] Remove a redundant condition for comment feeds from WP_Query::get_posts(). props engelen. fixes #28401. Built from https://develop.svn.wordpress.org/trunk@29257 git-svn-id: http://core.svn.wordpress.org/trunk@29040 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index f76be29f45..f32fecf6f5 100644 --- a/wp-includes/query.php +++ b/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";