Make WordPress Core

Ticket #17767: comments-cdata-suggestion.diff

File comments-cdata-suggestion.diff, 1.2 KB (added by dzver, 14 years ago)
  • feed-rss2-comments.php

     
    4848                        }
    4949                ?></title>
    5050                <link><?php comment_link() ?></link>
    51                 <dc:creator><?php echo get_comment_author_rss() ?></dc:creator>
     51                <dc:creator><![CDATA[<?php echo get_comment_author_rss() ?>]]></dc:creator>
    5252                <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true, false), false); ?></pubDate>
    5353                <guid isPermaLink="false"><?php comment_guid() ?></guid>
    5454<?php if ( post_password_required($comment_post) ) : ?>
    5555                <description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description>
    5656                <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
    5757<?php else : // post pass ?>
    58                 <description><?php comment_text_rss() ?></description>
     58                <description><![CDATA[<?php comment_text_rss() ?>]]></description>
    5959                <content:encoded><![CDATA[<?php comment_text() ?>]]></content:encoded>
    6060<?php endif; // post pass
    6161        do_action('commentrss2_item', $comment->comment_ID, $comment_post->ID);