mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
Add charset to async-upload content-type header. Props duncanmc. fixes #6873 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e7c4a9de85
commit
a5336482b1
@ -15,7 +15,7 @@ if ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
|
||||
unset($current_user);
|
||||
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') )
|
||||
wp_die(__('You do not have permission to upload files.'));
|
||||
|
Loading…
Reference in New Issue
Block a user