X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9b5673a7aae863ab45c3b73460060352c5b3810b..refs/tags/wordpress-3.4:/wp-admin/async-upload.php diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php index 6fa65181..e9d59e22 100644 --- a/wp-admin/async-upload.php +++ b/wp-admin/async-upload.php @@ -23,7 +23,7 @@ if ( empty($_COOKIE[LOGGED_IN_COOKIE]) && !empty($_REQUEST['logged_in_cookie']) unset($current_user); require_once('./admin.php'); -header('Content-Type: text/plain; charset=' . get_option('blog_charset')); +header('Content-Type: text/html; charset=' . get_option('blog_charset')); if ( !current_user_can('upload_files') ) wp_die(__('You do not have permission to upload files.')); @@ -66,5 +66,3 @@ if ( $_REQUEST['short'] ) { $type = $_REQUEST['type']; echo apply_filters("async_upload_{$type}", $id); } - -?>