From f2fe75585f4ef329b485a91c3edeb9cb7944da8d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 1 Dec 2006 00:11:43 +0000 Subject: [PATCH] Export file content type fixups from mdawaffe. fixes #3080 git-svn-id: https://develop.svn.wordpress.org/trunk@4563 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/export.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/wp-admin/export.php b/wp-admin/export.php index ad654b008c..5fb7876a63 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -49,9 +49,8 @@ global $wpdb, $posts, $post; $filename = 'wordpress.' . date('Y-m-d') . '.xml'; header('Content-Description: File Transfer'); -header('Content-Type: application/octet-stream'); header("Content-Disposition: attachment; filename=$filename"); -header('Content-type: text/wxr+xml; charset=' . get_option('blog_charset'), true); +header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); $where = ''; if ( isset( $_GET['author'] ) && $_GET['author'] != 'all' ) { @@ -126,12 +125,18 @@ function wxr_category_description($c) { - - - - - - + + + + + + + + + + + +