WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#10345 closed defect (bug) (fixed)

change wp_ajax_nopriv in admin-ajax.php to support GET as well as POST

Reported by: dd32 Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.9
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

At present, the admin-ajax.php file supports GET and POST methods for logged in users, However, Only supports POST requests for those who are not logged in.

For the sake of consistency, I suggest allowing both GET and POST requests to fire this action.

See patch.

(Note for others, WordPress forces $_REQUEST to be GET/POST only, so no cookie issues)

Attachments (1)

10345.diff (442 bytes) - added by dd32 6 years ago.

Download all attachments as: .zip

Change History (2)

@dd326 years ago

comment:1 @ryan6 years ago

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

(In [11694]) change wp_ajax_nopriv in admin-ajax.php to support GET as well as POST. Props dd32. fixes #10345

Note: See TracTickets for help on using tickets.