Use a CDATA section for RSS2 comments feeds, so HTML in comments doesn't kill XML validation. props bazza. fixes #16466

git-svn-id: http://core.svn.wordpress.org/trunk@21238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2012-07-09 04:25:57 +00:00
parent 3b46a53530
commit a96c5c0b2a

View File

@ -54,7 +54,7 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment();
<description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description>
<content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
<?php else : // post pass ?>
<description><?php comment_text_rss() ?></description>
<description><![CDATA[<?php comment_text_rss() ?>]]></description>
<content:encoded><![CDATA[<?php comment_text() ?>]]></content:encoded>
<?php endif; // post pass
do_action('commentrss2_item', $comment->comment_ID, $comment_post->ID);