WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/10/2013 04:54:16 PM (7 years ago)
Author:
wonderboymusic
Message:

Consistently wrap author and excerpt nodes with CDATA in feeds.

Fixes #18056.

File:
1 edited

Legend:

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

    r13113 r25315  
    4040    <title><?php the_title_rss() ?></title>
    4141    <link><?php the_permalink_rss() ?></link>
    42      <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
    43     <dc:creator><?php the_author() ?></dc:creator>
     42    <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
     43    <dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator>
    4444    <?php the_category_rss('rdf') ?>
    4545<?php if (get_option('rss_use_excerpt')) : ?>
    46     <description><?php the_excerpt_rss() ?></description>
     46    <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    4747<?php else : ?>
    48     <description><?php the_excerpt_rss() ?></description>
     48    <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    4949    <content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded>
    5050<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.