Make WordPress Core

Ticket #4242: export-cdata.diff

File export-cdata.diff, 1.6 KB (added by nbachiyski, 18 years ago)
  • wp-admin/export.php

     
    178178<title><?php the_title_rss() ?></title>
    179179<link><?php permalink_single_rss() ?></link>
    180180<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    181 <dc:creator><?php the_author() ?></dc:creator>
     181<dc:creator><?php echo wxr_cdata(get_the_author()); ?></dc:creator>
    182182<?php the_category_rss() ?>
    183183
    184184<guid isPermaLink="false"><?php the_guid(); ?></guid>
    185185<description></description>
    186 <content:encoded><![CDATA[<?php echo $post->post_content ?>]]></content:encoded>
     186<content:encoded><?php echo wxr_cdata($post->post_content); ?></content:encoded>
    187187<wp:post_id><?php echo $post->ID; ?></wp:post_id>
    188188<wp:post_date><?php echo $post->post_date; ?></wp:post_date>
    189189<wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt>
     
    216216<wp:comment_author_IP><?php echo $c->comment_author_IP; ?></wp:comment_author_IP>
    217217<wp:comment_date><?php echo $c->comment_date; ?></wp:comment_date>
    218218<wp:comment_date_gmt><?php echo $c->comment_date_gmt; ?></wp:comment_date_gmt>
    219 <wp:comment_content><?php echo $c->comment_content; ?></wp:comment_content>
     219<wp:comment_content><?php echo wxr_cdata($c->comment_content); ?></wp:comment_content>
    220220<wp:comment_approved><?php echo $c->comment_approved; ?></wp:comment_approved>
    221221<wp:comment_type><?php echo $c->comment_type; ?></wp:comment_type>
    222222<wp:comment_parent><?php echo $c->comment_parent; ?></wp:comment_parent>