Ticket #7945 (closed enhancement: fixed)

Opened 3 months ago

Last modified 3 months ago

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

Reported by: misterbisson Assigned to: anonymous
Priority: normal Milestone: 2.7
Component: General Version:
Severity: normal Keywords:
Cc:

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

admin-ajax-allow-GET.diff (0.8 kB) - added by misterbisson on 10/22/08 15:27:52.

Change History

10/22/08 15:27:52 changed by misterbisson

  • attachment admin-ajax-allow-GET.diff added.

10/22/08 15:28:20 changed by misterbisson

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

10/22/08 17:15:19 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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

10/22/08 22:14:41 changed by jacobsantos

  • milestone changed from 2.8 to 2.7.