Add charset to async-upload content-type header. Props duncanmc. fixes #6873 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e1faf662e8
commit
dd60c22172
@ -15,7 +15,7 @@ if ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
|
|||||||
unset($current_user);
|
unset($current_user);
|
||||||
require_once('admin.php');
|
require_once('admin.php');
|
||||||
|
|
||||||
header('Content-Type: text/plain');
|
header('Content-Type: text/plain; charset=' . get_option('blog_charset'));
|
||||||
|
|
||||||
if ( !current_user_can('upload_files') )
|
if ( !current_user_can('upload_files') )
|
||||||
wp_die(__('You do not have permission to upload files.'));
|
wp_die(__('You do not have permission to upload files.'));
|
||||||
|
Loading…
Reference in New Issue
Block a user