Ticket #5185: query.diff
| File query.diff, 0.8 kB (added by ruckus, 8 months ago) |
|---|
-
wp-includes/query.php
old new 1272 1272 // Raw results filter. Prior to status checks. 1273 1273 $this->posts = apply_filters('posts_results', $this->posts); 1274 1274 1275 if ( $this->is_comment_feed && $this->is_singular ) {1275 if ( !empty($this->posts) && $this->is_comment_feed && $this->is_singular ) { 1276 1276 $cjoin = apply_filters('comment_feed_join', ''); 1277 1277 $cwhere = apply_filters('comment_feed_where', "WHERE comment_post_ID = {$this->posts[0]->ID} AND comment_approved = '1'"); 1278 1278 $comments_request = "SELECT $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss');
