Make WordPress Core

Changeset 4477


Ignore:
Timestamp:
11/18/2006 01:27:22 AM (17 years ago)
Author:
ryan
Message:

Force download of export file in browsers that try to be too smart. Props mdawaffe. fixes #3225

File:
1 edited

Legend:

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

    r4424 r4477  
    3131header('Content-Type: application/octet-stream');
    3232header("Content-Disposition: attachment; filename=$filename");
    33 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
     33header('Content-type: text/wxr+xml; charset=' . get_option('blog_charset'), true);
    3434//$posts = query_posts('');
    3535$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts ORDER BY post_date_gmt ASC");
    3636?>
     37<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your blog. -->
     38<!-- It contains information about your blog's posts, comments, and categories. -->
     39<!-- You may use this file to transfer that content from one site to another. -->
     40<!-- To import this information into a WordPress blog, -->
     41<!-- 1. Log into that blog as an administrator -->
     42<!-- 2. Go to Manage: Import in the blog's admin panels -->
     43<!-- 3. Choose "WordPress" from the list -->
     44<!-- 4. Upload this file using the form provided on that page -->
     45<!-- You will be taken through the simple import procedure. -->
     46
    3747<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"-->
    3848<rss version="2.0"
Note: See TracChangeset for help on using the changeset viewer.