From b973ee2e7d50b875a2221a09b1d3b7e291cb5871 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 18 Nov 2006 01:27:22 +0000 Subject: [PATCH] Force download of export file in browsers that try to be too smart. Props mdawaffe. fixes #3225 git-svn-id: https://develop.svn.wordpress.org/trunk@4477 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/export.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/wp-admin/export.php b/wp-admin/export.php index 3942aba895..1a35e51fc1 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -30,10 +30,20 @@ function export_wp() { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header("Content-Disposition: attachment; filename=$filename"); -header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); +header('Content-type: text/wxr+xml; charset=' . get_option('blog_charset'), true); //$posts = query_posts(''); $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts ORDER BY post_date_gmt ASC"); ?> + + + + + + + + + + } include ('admin-footer.php'); -?> \ No newline at end of file +?>