WordPress.org

Make WordPress Core

Ticket #10671: index-extra.diff

File index-extra.diff, 403 bytes (added by niallkennedy, 5 years ago)

Extra dashboard content ajax handler with sniff opt-out HTTP header.

  • index-extra.php

     
    1616require_once (ABSPATH . WPINC . '/rss.php'); 
    1717 
    1818@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 
     19@header('X-Content-Type-Options: nosniff'); 
    1920 
    2021switch ( $_GET['jax'] ) { 
    2122