Make WordPress Core

Changeset 27558


Ignore:
Timestamp:
03/15/2014 07:58:52 PM (10 years ago)
Author:
nacin
Message:

Define DOING_AJAX earlier in async-upload.php.

props avryl.
fixes #27387. see [22902].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r25942 r27558  
    66 * @subpackage Administration
    77 */
     8
     9if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
     10    define( 'DOING_AJAX', true );
     11}
    812
    913define('WP_ADMIN', true);
     
    3337
    3438if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
    35     define( 'DOING_AJAX', true );
    3639    include ABSPATH . 'wp-admin/includes/ajax-actions.php';
    3740
Note: See TracChangeset for help on using the changeset viewer.