WordPress.org

Make WordPress Core

Ticket #5072: 5072.2.diff

File 5072.2.diff, 1.4 KB (added by markjaquith, 11 years ago)
  • wp-includes/feed-rss2-comments.php

     
    4040                <link><?php comment_link() ?></link>
    4141                <dc:creator><?php echo get_comment_author_rss() ?></dc:creator>
    4242                <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>
     43                <guid isPermaLink="false"><?php comment_guid() ?></guid>
    4444<?php if (!empty($comment_post->post_password) && $_COOKIE['wp-postpass'] != $comment_post->post_password) : ?>
    4545                <description><?php _e('Protected Comments: Please enter your password to view comments.'); ?></description>
    4646                <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
  • wp-includes/feed.php

     
    7676
    7777}
    7878
     79function comment_guid() {
     80        echo get_comment_guid();
     81}
     82
     83function get_comment_guid() {
     84        global $comment;
     85
     86        if ( !is_object($comment) )
     87                return false;
     88
     89        return get_the_guid($comment->comment_post_ID) . '#comment-' . $comment->comment_ID;
     90}
     91
    7992function comment_link() {
    8093        echo get_comment_link();
    8194}