WordPress.org

Make WordPress Core

Changeset 7299


Ignore:
Timestamp:
03/14/2008 07:37:18 PM (12 years ago)
Author:
westi
Message:

Enclose more things as CDATA when exporting. Fixes #4242 props nbachiyski.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/export.php

    r6753 r7299  
    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>
     
    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 echo 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>
Note: See TracChangeset for help on using the changeset viewer.