diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 3bf91696f..1570b74d3 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -654,22 +654,10 @@ function win_is_writable($path) { return true; } -/** - * Send a HTTP header to disable content type sniffing in browsers which support it. - * - * @link http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx - * @link http://src.chromium.org/viewvc/chrome?view=rev&revision=6985 - * - * @since 3.0.0. - * @return none - */ -function send_nosniff_header() { - @header( 'X-Content-Type-Options: nosniff' ); -} /** * Display the default admin color scheme picker (Used in user-edit.php) * - * @since 3.0 + * @since 3.0.0 */ function admin_color_scheme_picker() { global $_wp_admin_css_colors, $user_id; ?> diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 0993b7574..a462b8ded 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -4081,4 +4081,19 @@ function __return_true() { */ function __return_false() { return false; -} \ No newline at end of file +} + +/** + * Send a HTTP header to disable content type sniffing in browsers which support it. + * + * @link http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx + * @link http://src.chromium.org/viewvc/chrome?view=rev&revision=6985 + * + * @since 3.0.0 + * @return none + */ +function send_nosniff_header() { + @header( 'X-Content-Type-Options: nosniff' ); +} + +?> \ No newline at end of file