[wp-trac] [WordPress Trac] #51463: Fire an action prior to AJAX action handling (allows diagnostics)

WordPress Trac noreply at wordpress.org
Wed Oct 7 09:07:42 UTC 2020


#51463: Fire an action prior to AJAX action handling (allows diagnostics)
---------------------------+-----------------------------
 Reporter:  DavidAnderson  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Currently, admin-ajax.php has no action that it will fire if there is no
 action hooked.

 This means that you can't (without using hacks) track calls to "unhooked"
 actions. To be able to track those calls is useful for various diagnostic
 purposes. For example, logging bots which speculatively call a list of
 various actions belonging to vulnerable plugins. Or, detecting and logging
 coding errors.

 The attached patch adds a "pre_wp_ajax" action call to allow plugins to
 monitor calls to unhooked AJAX actions.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51463>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list