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

WordPress Trac wp-trac at lists.automattic.com
Wed May 23 20:32:27 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 westi):

 Replying to [comment:6 nacin]:
 > While it's handy, current_filter() also works.
 >
 > Given the wide use of DOING_AJAX, I doubt many people were relying on
 this behavior.
 >
 > At the moment, I'm not sure whether to keep it or ditch it.

 Seeing as current_filter() exists and is a better way of finding the
 information consistently I would say we should go back to the old
 behaviour and reduce the risk of any plugin bugs.

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


More information about the wp-trac mailing list