From a0dcbfac4eb980309c3b65194307c86274b4ec95 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@4477 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 3942aba89..1a35e51fc 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 +?>