Make WordPress Core

Ticket #27387: 27387.patch

File 27387.patch, 737 bytes (added by iseulde, 11 years ago)
  • src/wp-admin/async-upload.php

     
    66 * @subpackage Administration
    77 */
    88
     9if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
     10        define( 'DOING_AJAX', true );
     11}
     12
    913define('WP_ADMIN', true);
    1014
    1115if ( defined('ABSPATH') )
     
    3236header('Content-Type: text/html; charset=' . get_option('blog_charset'));
    3337
    3438if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
    35         define( 'DOING_AJAX', true );
    3639        include ABSPATH . 'wp-admin/includes/ajax-actions.php';
    3740
    3841        send_nosniff_header();