mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-04 20:11:39 +00:00
Introduce send_nosniff_header() and use it to turn off content sniffing in supported browsers. Fixes #10671 props chrisscott and niallkennedy.
git-svn-id: https://develop.svn.wordpress.org/trunk@13409 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -21,6 +21,7 @@ if ( ! isset( $_REQUEST['action'] ) )
|
||||
|
||||
require_once('includes/admin.php');
|
||||
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
|
||||
send_nosniff_header();
|
||||
|
||||
do_action('admin_init');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user