WordPress.org

Make WordPress Core

Ticket #18056: 18056.2.diff

File 18056.2.diff, 2.6 KB (added by wonderboymusic, 6 years ago)
  • src/wp-includes/feed-rss2.php

     
    3636                <link><?php the_permalink_rss() ?></link>
    3737                <comments><?php comments_link_feed(); ?></comments>
    3838                <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    39                 <dc:creator><?php the_author() ?></dc:creator>
     39                <dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator>
    4040                <?php the_category_rss('rss2') ?>
    4141
    4242                <guid isPermaLink="false"><?php the_guid(); ?></guid>
  • src/wp-includes/feed-rdf.php

     
    3939<item rdf:about="<?php the_permalink_rss() ?>">
    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; ?>
    5151        <?php do_action('rdf_item'); ?>
  • src/wp-admin/includes/export.php

     
    370370                <title><?php echo apply_filters( 'the_title_rss', $post->post_title ); ?></title>
    371371                <link><?php the_permalink_rss() ?></link>
    372372                <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
    373                 <dc:creator><?php echo get_the_author_meta( 'login' ); ?></dc:creator>
     373                <dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator>
    374374                <guid isPermaLink="false"><?php the_guid(); ?></guid>
    375375                <description></description>
    376376                <content:encoded><?php echo wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) ); ?></content:encoded>