WordPress.org

Make WordPress Core

Ticket #20888: feed-rdf.php.patch

File feed-rdf.php.patch, 1.3 KB (added by hootbah, 3 years ago)
  • wordpress/wp-includes/feed-rdf.php

    old new  
    2121<channel rdf:about="<?php bloginfo_rss("url") ?>"> 
    2222        <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> 
    2323        <link><?php bloginfo_rss('url') ?></link> 
    24         <description><?php bloginfo_rss('description') ?></description> 
     24        <description><![CDATA[<?php bloginfo_rss('description') ?>]]></description> 
    2525        <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date> 
    2626        <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 
    2727        <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 
     
    4343        <dc:creator><?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; ?> 
    5151        <?php do_action('rdf_item'); ?>