diff options
Diffstat (limited to 'wp-includes/feed-rss2.php')
| -rw-r--r-- | wp-includes/feed-rss2.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php index 21d9b8e..3274583 100644 --- a/wp-includes/feed-rss2.php +++ b/wp-includes/feed-rss2.php @@ -1,24 +1,31 @@ <?php +/** + * RSS2 Feed Template for displaying RSS2 Posts feed. + * + * @package WordPress + */ + header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); $more = 1; ?> <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> -<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" --> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:atom="http://www.w3.org/2005/Atom" <?php do_action('rss2_ns'); ?> > <channel> <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> + <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> <link><?php bloginfo_rss('url') ?></link> <description><?php bloginfo_rss("description") ?></description> <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> - <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator> + <?php the_generator( 'rss2' ); ?> <language><?php echo get_option('rss_language'); ?></language> <?php do_action('rss2_head'); ?> <?php while( have_posts()) : the_post(); ?> @@ -41,7 +48,7 @@ $more = 1; <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> <?php endif; ?> <?php endif; ?> - <wfw:commentRss><?php echo comments_rss(); ?></wfw:commentRss> + <wfw:commentRss><?php echo get_post_comments_feed_link(); ?></wfw:commentRss> <?php rss_enclosure(); ?> <?php do_action('rss2_item'); ?> </item> |
