[wp-trac] [WordPress Trac] #20699: AJAX Actions now pass the action name as an arg

WordPress Trac wp-trac at lists.automattic.com
Thu May 17 21:16:40 UTC 2012


#20699: AJAX Actions now pass the action name as an arg
--------------------------------------+------------------
 Reporter:  sivel                     |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  3.4
Component:  Administration            |     Version:  3.4
 Severity:  normal                    |  Resolution:
 Keywords:  2nd-opinion dev-feedback  |
--------------------------------------+------------------

Comment (by sivel):

 Replying to [comment:2 TobiasBg]:
 > Why don't you just check {{{DOING_AJAX}}} to determine if your callback
 was called by an AJAX action?

 That is a good point as well, and in general would work.  Although this is
 not necessarily about my plugin, but the potential for it to break more
 than just mine.  I have a fix in place that works with my more advanced
 requirement.

 In any case, if it stays, it may be worth at least a wpdevel post.  In
 either case, I'm fine with the outcome.  My particular issue has been
 resolved already.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20699#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list