Ticket #12683: 12683.diff
File 12683.diff, 1.5 KB (added by , 15 years ago) |
---|
-
wp-includes/functions.php
1648 1648 } 1649 1649 1650 1650 /** 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 */ 1659 function send_nosniff_header() { 1660 @header( 'X-Content-Type-Options: nosniff' ); 1661 } 1662 1663 /** 1651 1664 * Retrieve the number of database queries during the WordPress execution. 1652 1665 * 1653 1666 * @since 2.0.0 … … 4081 4094 */ 4082 4095 function __return_false() { 4083 4096 return false; 4084 } 4085 No newline at end of file 4097 } -
wp-admin/includes/misc.php
655 655 } 656 656 657 657 /** 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.aspx661 * @link http://src.chromium.org/viewvc/chrome?view=rev&revision=6985662 *663 * @since 3.0.0.664 * @return none665 */666 function send_nosniff_header() {667 @header( 'X-Content-Type-Options: nosniff' );668 }669 /**670 658 * Display the default admin color scheme picker (Used in user-edit.php) 671 659 * 672 660 * @since 3.0