Changeset 4144 for trunk/wp-commentsrss2.php
- Timestamp:
- 08/30/2006 09:46:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-commentsrss2.php
r3644 r4144 6 6 } 7 7 8 header('Content-type: text/xml;charset=' . get_ settings('blog_charset'), true);8 header('Content-type: text/xml;charset=' . get_option('blog_charset'), true); 9 9 10 echo '<?xml version="1.0" encoding="'.get_ settings('blog_charset').'"?'.'>';10 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; 11 11 ?> 12 12 <!-- generator="wordpress/<?php echo $wp_version ?>" --> … … 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") . "' 37 ORDER BY comment_date_gmt DESC LIMIT " . get_ settings('posts_per_rss') );37 ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss') ); 38 38 } else { // if no post id passed in, we'll just ue the last 10 comments. 39 39 $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email, … … 42 42 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status = 'publish' 43 43 AND $wpdb->comments.comment_approved = '1' AND post_date_gmt < '" . gmdate("Y-m-d H:i:s") . "' 44 ORDER BY comment_date_gmt DESC LIMIT " . get_ settings('posts_per_rss') );44 ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss') ); 45 45 } 46 46 // this line is WordPress' motor, do not delete it.
Note: See TracChangeset
for help on using the changeset viewer.