Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-rss2-comments.php

    r6026 r7244  
    11<?php
     2/**
     3 * RSS2 Feed Template for displaying RSS2 Comments feed.
     4 *
     5 * @package WordPress
     6 */
     7
    28header('Content-Type: text/xml;charset=' . get_option('blog_charset'), true);
    39
    410echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
    511?>
    6 <!-- generator="wordpress/<?php echo $wp_version ?>" -->
    712<rss version="2.0"
    813    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    914    xmlns:dc="http://purl.org/dc/elements/1.1/"
     15    xmlns:atom="http://www.w3.org/2005/Atom"
    1016    >
    1117<channel>
     
    1824            printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
    1925    ?></title>
     26    <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    2027    <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    2128    <description><?php bloginfo_rss("description") ?></description>
    2229    <pubDate><?php echo gmdate('r'); ?></pubDate>
    23     <generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator>
     30    <?php the_generator( 'rss2' ); ?>
    2431    <?php do_action('commentsrss2_head'); ?>
    2532<?php
     
    4148        <dc:creator><?php echo get_comment_author_rss() ?></dc:creator>
    4249        <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>
    4451<?php if (!empty($comment_post->post_password) && $_COOKIE['wp-postpass'] != $comment_post->post_password) : ?>
    4552        <description><?php _e('Protected Comments: Please enter your password to view comments.'); ?></description>
Note: See TracChangeset for help on using the changeset viewer.