Make WordPress Core

Changeset 13806


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

Location:
trunk
Files:
2 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() {
  • trunk/wp-includes/functions.php

    r13797 r13806  
    40834083    return false;
    40844084}
     4085
     4086/**
     4087 * Send a HTTP header to disable content type sniffing in browsers which support it.
     4088 *
     4089 * @link http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
     4090 * @link http://src.chromium.org/viewvc/chrome?view=rev&revision=6985
     4091 *
     4092 * @since 3.0.0
     4093 * @return none
     4094 */
     4095function send_nosniff_header() {
     4096    @header( 'X-Content-Type-Options: nosniff' );
     4097}
     4098
     4099?>
Note: See TracChangeset for help on using the changeset viewer.