Changeset 6683
- Timestamp:
- 01/29/2008 07:01:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r6682 r6683 1283 1283 $this->posts = apply_filters('posts_results', $this->posts); 1284 1284 1285 if ( $this->is_comment_feed && $this->is_singular ) {1285 if ( !empty($this->posts) && $this->is_comment_feed && $this->is_singular ) { 1286 1286 $cjoin = apply_filters('comment_feed_join', ''); 1287 $cwhere = apply_filters('comment_feed_where', "WHERE comment_post_ID = {$this->posts[0]->ID}AND comment_approved = '1'");1287 $cwhere = apply_filters('comment_feed_where', "WHERE comment_post_ID = '{$this->posts[0]->ID}' AND comment_approved = '1'"); 1288 1288 $comments_request = "SELECT $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss'); 1289 1289 $this->comments = $wpdb->get_results($comments_request);
Note: See TracChangeset
for help on using the changeset viewer.