WordPress.org

Make WordPress Core

Ticket #3225: 3225b.diff

File 3225b.diff, 2.1 KB (added by mdawaffe, 7 years ago)
  • export.php

     
    4949$filename = 'wordpress.' . date('Y-m-d') . '.xml'; 
    5050 
    5151header('Content-Description: File Transfer'); 
    52 header('Content-Type: application/octet-stream'); 
    5352header("Content-Disposition: attachment; filename=$filename"); 
    54 header('Content-type: text/wxr+xml; charset=' . get_option('blog_charset'), true); 
     53header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 
    5554 
    5655$where = ''; 
    5756if ( isset( $_GET['author'] ) && $_GET['author'] != 'all' ) { 
     
    126125<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your blog. --> 
    127126<!-- It contains information about your blog's posts, comments, and categories. --> 
    128127<!-- 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. --> 
    135129 
     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 
    136141<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"--> 
    137142<rss version="2.0" 
    138143        xmlns:content="http://purl.org/rss/1.0/modules/content/"