Changeset 1355 for trunk/wp-commentsrss2.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-commentsrss2.php
r1223 r1355 29 29 $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email, 30 30 comment_author_url, comment_date, comment_content, comment_post_ID, 31 $ tableposts.ID, $tableposts.post_password FROM $tablecomments32 LEFT JOIN $ tableposts ON comment_post_id = id WHERE comment_post_ID = '$id'33 AND $ tablecomments.comment_approved = '1' AND $tableposts.post_status = 'publish'31 $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments 32 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = '$id' 33 AND $wpdb->comments.comment_approved = '1' AND $wpdb->posts.post_status = 'publish' 34 34 AND post_date < '".date("Y-m-d H:i:59")."' 35 35 ORDER BY comment_date LIMIT " . get_settings('posts_per_rss') ); … … 37 37 $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email, 38 38 comment_author_url, comment_date, comment_content, comment_post_ID, 39 $ tableposts.ID, $tableposts.post_password FROM $tablecomments40 LEFT JOIN $ tableposts ON comment_post_id = id WHERE $tableposts.post_status = 'publish'41 AND $ tablecomments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."'39 $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments 40 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status = 'publish' 41 AND $wpdb->comments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."' 42 42 ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') ); 43 43 }
Note: See TracChangeset
for help on using the changeset viewer.