Add encoding to WXR exports, and clean up HTML comments.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ae0d54317c
commit
e6a85a0fc8
|
@ -122,22 +122,30 @@ function wxr_category_description($c) {
|
||||||
|
|
||||||
echo '<wp:category_description>' . wxr_cdata($c->category_description) . '</wp:category_description>';
|
echo '<wp:category_description>' . wxr_cdata($c->category_description) . '</wp:category_description>';
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your blog. -->
|
|
||||||
<!-- It contains information about your blog's posts, comments, and categories. -->
|
|
||||||
<!-- You may use this file to transfer that content from one site to another. -->
|
|
||||||
<!-- This file is not intended to serve as a complete backup of your blog. -->
|
|
||||||
|
|
||||||
<!-- To import this information into a WordPress blog follow these steps. -->
|
print '<?xml version="1.0" encoding="' . get_bloginfo('charset') . '"?' . ">\n";
|
||||||
<!-- 1. Log into that blog as an administrator. -->
|
|
||||||
<!-- 2. Go to Manage: Import in the blog's admin panels. -->
|
?>
|
||||||
<!-- 3. Choose "WordPress" from the list. -->
|
|
||||||
<!-- 4. Upload this file using the form provided on that page. -->
|
<!--
|
||||||
<!-- 5. You will first be asked to map the authors in this export file to users -->
|
This is a WordPress eXtended RSS file generated by WordPress as an export of
|
||||||
<!-- on the blog. For each author, you may choose to map to an -->
|
your blog. It contains information about your blog's posts, comments, and
|
||||||
<!-- existing user on the blog or to create a new user -->
|
categories. You may use this file to transfer that content from one site to
|
||||||
<!-- 6. WordPress will then import each of the posts, comments, and categories -->
|
another. This file is not intended to serve as a complete backup of your
|
||||||
<!-- contained in this file into your blog -->
|
blog.
|
||||||
|
|
||||||
|
To import this information into a WordPress blog follow these steps:
|
||||||
|
|
||||||
|
1. Log into that blog as an administrator.
|
||||||
|
2. Go to Manage > Import in the blog's admin.
|
||||||
|
3. Choose "WordPress" from the list of importers.
|
||||||
|
4. Upload this file using the form provided on that page.
|
||||||
|
5. You will first be asked to map the authors in this export file to users
|
||||||
|
on the blog. For each author, you may choose to map an existing user on
|
||||||
|
the blog or to create a new user.
|
||||||
|
6. WordPress will then import each of the posts, comments, and categories
|
||||||
|
contained in this file onto your blog.
|
||||||
|
-->
|
||||||
|
|
||||||
<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"-->
|
<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"-->
|
||||||
<rss version="2.0"
|
<rss version="2.0"
|
||||||
|
|
Loading…
Reference in New Issue