Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#7945 closed enhancement (fixed)

Allow $_GET['action'] in admin-ajax.php

Reported by: misterbisson Owned by:
Priority: normal Milestone: 2.7
Component: General Version:
Severity: normal Keywords:
Cc: Focuses:

Description

admin-ajax.php doesn't now allow plugins to hook into do_action( 'wp_ajax_' . $_GETaction ), even though $_GETaction is used for ajax-tag-search. Requiring $_POSTaction when $_GETaction would otherwise work adds additional complexity.

The attached diff solves the problem.

Attachments (1)

admin-ajax-allow-GET.diff (830 bytes ) - added by misterbisson 18 years ago.

Download all attachments as: .zip

Change History (4)

#1 @misterbisson
18 years ago

Important fix added in new diff. Thanks @otto for pointing it out.

#2 @ryan
18 years ago

  • Resolutionfixed
  • Status newclosed

(In [9281]) Allow action in admin-ajax.php. Props misterbisson. fixes #7945

#3 @jacobsantos
18 years ago

  • Milestone 2.82.7
Note: See TracTickets for help on using tickets.