Changeset 956 for trunk/wp-commentsrss2.php
- Timestamp:
- 03/01/2004 06:13:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-commentsrss2.php
r900 r956 6 6 header('Content-type: text/xml'); 7 7 8 if (!isset($rss_language)) { $rss_language = 'en'; }9 8 echo '<?xml version="1.0"?'.'>'; 10 9 ?> … … 22 21 <link><?php (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) ? permalink_single_rss() : bloginfo_rss("url") ?></link> 23 22 <description><?php bloginfo_rss("description") ?></description> 24 <language><?php echo $rss_language?></language>23 <language><?php echo get_settings('rss_language'); ?></language> 25 24 <pubDate><?php echo gmdate('r'); ?></pubDate> 26 25 <generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator> … … 34 33 AND $tablecomments.comment_approved = '1' AND $tableposts.post_status = 'publish' 35 34 AND post_date < '".date("Y-m-d H:i:s")."' 36 ORDER BY comment_date LIMIT $posts_per_rss");35 ORDER BY comment_date LIMIT " . get_settings('posts_per_rss') ); 37 36 } else { // if no post id passed in, we'll just ue the last 10 comments. 38 37 $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email, … … 41 40 LEFT JOIN $tableposts ON comment_post_id = id WHERE $tableposts.post_status = 'publish' 42 41 AND $tablecomments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."' 43 ORDER BY comment_date DESC LIMIT $posts_per_rss");42 ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') ); 44 43 } 45 44 // this line is WordPress' motor, do not delete it.
Note: See TracChangeset
for help on using the changeset viewer.