Changeset 3644 for trunk/wp-commentsrss2.php
- Timestamp:
- 03/17/2006 01:16:22 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-commentsrss2.php
r3543 r3644 32 32 comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID, 33 33 $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments 34 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = ' $id'34 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = '" . get_the_ID() . "' 35 35 AND $wpdb->comments.comment_approved = '1' AND $wpdb->posts.post_status = 'publish' 36 36 AND post_date_gmt < '" . gmdate("Y-m-d H:i:59") . "' … … 47 47 if ($comments) { 48 48 foreach ($comments as $comment) { 49 $GLOBALS['comment'] =& $comment; 49 50 // Some plugins may need to know the metadata 50 51 // associated with this comment's post: … … 78 79 </item> 79 80 <?php 80 } 81 } 81 82 } 82 83 }
Note: See TracChangeset
for help on using the changeset viewer.