Ticket #3225: 3225b.diff
| File 3225b.diff, 2.1 kB (added by mdawaffe, 2 years ago) |
|---|
-
export.php
old new 49 49 $filename = 'wordpress.' . date('Y-m-d') . '.xml'; 50 50 51 51 header('Content-Description: File Transfer'); 52 header('Content-Type: application/octet-stream');53 52 header("Content-Disposition: attachment; filename=$filename"); 54 header('Content-type: text/ wxr+xml; charset=' . get_option('blog_charset'), true);53 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 55 54 56 55 $where = ''; 57 56 if ( isset( $_GET['author'] ) && $_GET['author'] != 'all' ) { … … 126 125 <!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your blog. --> 127 126 <!-- It contains information about your blog's posts, comments, and categories. --> 128 127 <!-- You may use this file to transfer that content from one site to another. --> 129 <!-- To import this information into a WordPress blog, --> 130 <!-- 1. Log into that blog as an administrator --> 131 <!-- 2. Go to Manage: Import in the blog's admin panels --> 132 <!-- 3. Choose "WordPress" from the list --> 133 <!-- 4. Upload this file using the form provided on that page --> 134 <!-- You will be taken through the simple import procedure. --> 128 <!-- This file is not intended to serve as a complete backup of your blog. --> 135 129 130 <!-- To import this information into a WordPress blog follow these steps. --> 131 <!-- 1. Log into that blog as an administrator. --> 132 <!-- 2. Go to Manage: Import in the blog's admin panels. --> 133 <!-- 3. Choose "WordPress" from the list. --> 134 <!-- 4. Upload this file using the form provided on that page. --> 135 <!-- 5. You will first be asked to map the authors in this export file to users --> 136 <!-- on the blog. For each author, you may choose to map to an --> 137 <!-- existing user on the blog or to create a new user --> 138 <!-- 6. WordPress will then import each of the posts, comments, and categories --> 139 <!-- contained in this file into your blog --> 140 136 141 <!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"--> 137 142 <rss version="2.0" 138 143 xmlns:content="http://purl.org/rss/1.0/modules/content/"
