Use a CDATA section for RSS2 comments feeds, so HTML in comments doesn't kill XML validation. props bazza. fixes #16466
git-svn-id: https://develop.svn.wordpress.org/trunk@21238 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0290c34cee
commit
fb23c2d9f4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user