Make WordPress Core


Ignore:
Timestamp:
03/23/2010 07:13:58 PM (15 years ago)
Author:
nacin
Message:

Move send_nosniff_header() into wp-includes so it can be used in wp-ajax.php. props sivel, fixes #12683

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r13733 r13806  
    656656
    657657/**
    658  * Send a HTTP header to disable content type sniffing in browsers which support it.
    659  *
    660  * @link http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
    661  * @link http://src.chromium.org/viewvc/chrome?view=rev&revision=6985
    662  *
    663  * @since 3.0.0.
    664  * @return none
    665  */
    666 function send_nosniff_header() {
    667     @header( 'X-Content-Type-Options: nosniff' );
    668 }
    669 /**
    670658 * Display the default admin color scheme picker (Used in user-edit.php)
    671659 *
    672  * @since 3.0
     660 * @since 3.0.0
    673661 */
    674662function admin_color_scheme_picker() {
Note: See TracChangeset for help on using the changeset viewer.