Make WordPress Core

Changeset 21238


Ignore:
Timestamp:
07/09/2012 04:25:57 AM (12 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

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

    r18716 r21238  
    5555        <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
    5656<?php else : // post pass ?>
    57         <description><?php comment_text_rss() ?></description>
     57        <description><![CDATA[<?php comment_text_rss() ?>]]></description>
    5858        <content:encoded><![CDATA[<?php comment_text() ?>]]></content:encoded>
    5959<?php endif; // post pass
Note: See TracChangeset for help on using the changeset viewer.