WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#27387 closed defect (bug) (fixed)

DOING_AJAX in async-upload.php defined too late

Reported by: iseulde Owned by: nacin
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords: has-patch
Focuses: Cc:

Description

DOING_AJAX in async-upload.php is defined after including wp-load.php (during which actions such as 'init' are done), whereas in admin-ajax.php this is defined immediately.

Attachments (1)

27387.patch (737 bytes) - added by iseulde 7 years ago.

Download all attachments as: .zip

Change History (5)

@iseulde
7 years ago

#1 @iseulde
7 years ago

  • Keywords has-patch added

#2 @iseulde
7 years ago

  • Version set to 3.5

#3 @ocean90
7 years ago

  • Component changed from General to Media
  • Milestone changed from Awaiting Review to 3.9

Related: [22902]

Noticed this other day too. Patch looks good for me.

#4 @nacin
7 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 27558:

Define DOING_AJAX earlier in async-upload.php.

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

Note: See TracTickets for help on using tickets.