WordPress.org

Make WordPress Core

Ticket #12683: 12683.diff

File 12683.diff, 1.5 KB (added by sivel, 8 years ago)

Move send_nosniff_header to wp-includes/functions.php

  • wp-includes/functions.php

     
    16481648}
    16491649
    16501650/**
     1651 * Send a HTTP header to disable content type sniffing in browsers which support it.
     1652 *
     1653 * @link http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
     1654 * @link http://src.chromium.org/viewvc/chrome?view=rev&revision=6985
     1655 *
     1656 * @since 3.0.0.
     1657 * @return none
     1658 */
     1659function send_nosniff_header() {
     1660        @header( 'X-Content-Type-Options: nosniff' );
     1661}
     1662
     1663/**
    16511664 * Retrieve the number of database queries during the WordPress execution.
    16521665 *
    16531666 * @since 2.0.0
     
    40814094 */
    40824095function __return_false() {
    40834096        return false;
    4084 }
    4085  No newline at end of file
     4097}
  • wp-admin/includes/misc.php

     
    655655}
    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 *
    672660 * @since 3.0