WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#12683 closed defect (bug) (fixed)

Missing function dependency for wp-ajax.php

Reported by: sivel Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: General Keywords: has-patch
Focuses: Cc:

Description

wp-ajax.php is currently broken because it attempts to call send_nosniff_header() which resides in wp-admin/includes/misc.php

Attachments (1)

12683.diff (1.5 KB) - added by sivel 5 years ago.
Move send_nosniff_header to wp-includes/functions.php

Download all attachments as: .zip

Change History (4)

@sivel5 years ago

Move send_nosniff_header to wp-includes/functions.php

comment:1 @sivel5 years ago

  • Cc matt@… added
  • Keywords hash-patch added
  • Owner sivel deleted
  • Status changed from new to assigned

Attached patch moves send_nosniff_header to wp-includes/functions.php since it is now used in both the frontend and the admin.

comment:2 @sivel5 years ago

  • Keywords has-patch added; hash-patch removed

comment:3 @nacin5 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [13806]) Move send_nosniff_header() into wp-includes so it can be used in wp-ajax.php. props sivel, fixes #12683

Note: See TracTickets for help on using tickets.