[wp-trac] [WordPress Trac] #40474: wp_ajax_(action) hook doesn't work in media gallery

WordPress Trac noreply at wordpress.org
Thu Apr 20 15:49:30 UTC 2017


#40474: wp_ajax_(action) hook doesn't work in media gallery
--------------------------+------------------------------
 Reporter:  hoandang      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  HTTP API      |     Version:  4.7.3
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by hoandang):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Just double-checked the doc and it states that the "wp_ajax_(action)" hook
 works only with custom ajax requests, so that explains the builtin
 wordpress ajax requests such as "save-attachment" don't work.

 The issue seems to be a missing feature in wordpress, it is not really a
 bug.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40474#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list