WordPress.org

Make WordPress Core

Ticket #4242: wxr-cdata.patch

File wxr-cdata.patch, 1.8 KB (added by westi, 7 years ago)

Updated patch to apply to trunk

  • C:/xampp/htdocs/wordpress/trunk/wp-admin/includes/export.php

     
    195195<title><?php echo apply_filters('the_title_rss', $post->post_title); ?></title> 
    196196<link><?php the_permalink_rss() ?></link> 
    197197<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> 
    198 <dc:creator><?php the_author() ?></dc:creator> 
     198<dc:creator><?php echo wxr_cdata(get_the_author()); ?></dc:creator> 
    199199<?php wxr_post_taxonomy() ?> 
    200200 
    201201<guid isPermaLink="false"><?php the_guid(); ?></guid> 
    202202<description></description> 
    203 <content:encoded><![CDATA[<?php echo apply_filters('the_content_export', $post->post_content); ?>]]></content:encoded> 
     203<content:encoded><?php echo wxr_cdata( apply_filters('the_content_export', $post->post_content) ); ?></content:encoded> 
    204204<wp:post_id><?php echo $post->ID; ?></wp:post_id> 
    205205<wp:post_date><?php echo $post->post_date; ?></wp:post_date> 
    206206<wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt> 
     
    238238<wp:comment_author_IP><?php echo $c->comment_author_IP; ?></wp:comment_author_IP> 
    239239<wp:comment_date><?php echo $c->comment_date; ?></wp:comment_date> 
    240240<wp:comment_date_gmt><?php echo $c->comment_date_gmt; ?></wp:comment_date_gmt> 
    241 <wp:comment_content><?php echo $c->comment_content; ?></wp:comment_content> 
     241<wp:comment_content><?php wxr_cdata($c->comment_content) ?></wp:comment_content> 
    242242<wp:comment_approved><?php echo $c->comment_approved; ?></wp:comment_approved> 
    243243<wp:comment_type><?php echo $c->comment_type; ?></wp:comment_type> 
    244244<wp:comment_parent><?php echo $c->comment_parent; ?></wp:comment_parent>