Make WordPress Core

Changeset 25009


Ignore:
Timestamp:
08/07/2013 11:16:29 AM (11 years ago)
Author:
westi
Message:

Use a CDATA second for comment authors in RSS2 comment feeds so that HTML in comments doesn't kill the XML validation.

Fixes #17767 props wonderboymusic, dzver.

File:
1 edited

Legend:

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

    r21332 r25009  
    4848        ?></title>
    4949        <link><?php comment_link() ?></link>
    50         <dc:creator><?php echo get_comment_author_rss() ?></dc:creator>
     50        <dc:creator><![CDATA[<?php echo get_comment_author_rss() ?>]]></dc:creator>
    5151        <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>
    5252        <guid isPermaLink="false"><?php comment_guid() ?></guid>
Note: See TracChangeset for help on using the changeset viewer.