- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed-rss2-comments.php
r6026 r7244 1 1 <?php 2 /** 3 * RSS2 Feed Template for displaying RSS2 Comments feed. 4 * 5 * @package WordPress 6 */ 7 2 8 header('Content-Type: text/xml;charset=' . get_option('blog_charset'), true); 3 9 4 10 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; 5 11 ?> 6 <!-- generator="wordpress/<?php echo $wp_version ?>" -->7 12 <rss version="2.0" 8 13 xmlns:content="http://purl.org/rss/1.0/modules/content/" 9 14 xmlns:dc="http://purl.org/dc/elements/1.1/" 15 xmlns:atom="http://www.w3.org/2005/Atom" 10 16 > 11 17 <channel> … … 18 24 printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); 19 25 ?></title> 26 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> 20 27 <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link> 21 28 <description><?php bloginfo_rss("description") ?></description> 22 29 <pubDate><?php echo gmdate('r'); ?></pubDate> 23 < generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator>30 <?php the_generator( 'rss2' ); ?> 24 31 <?php do_action('commentsrss2_head'); ?> 25 32 <?php … … 41 48 <dc:creator><?php echo get_comment_author_rss() ?></dc:creator> 42 49 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true), false); ?></pubDate> 43 <guid ><?php comment_link() ?></guid>50 <guid isPermaLink="false"><?php comment_guid() ?></guid> 44 51 <?php if (!empty($comment_post->post_password) && $_COOKIE['wp-postpass'] != $comment_post->post_password) : ?> 45 52 <description><?php _e('Protected Comments: Please enter your password to view comments.'); ?></description>
Note: See TracChangeset
for help on using the changeset viewer.