Changeset 2958 for trunk/wp-commentsrss2.php
- Timestamp:
- 10/20/2005 08:48:32 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-commentsrss2.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-commentsrss2.php
r2627 r2958 33 33 $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments 34 34 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = '$id' 35 AND $wpdb->comments.comment_approved = '1' AND ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'static')35 AND $wpdb->comments.comment_approved = '1' AND $wpdb->posts.post_status IN ('publish', 'static', 'object') 36 36 AND post_date < '".date("Y-m-d H:i:59")."' 37 37 ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') ); … … 40 40 comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID, 41 41 $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments 42 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'static')42 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status IN ('publish', 'static', 'object') 43 43 AND $wpdb->comments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."' 44 44 ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') );
Note: See TracChangeset
for help on using the changeset viewer.