[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 24 06:20:51 UTC 2012


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

Comment (by kurtpayne):

 One of these wp_ajax functions with `$action` as a parameter is called
 directly (not via hook) in at least one instance:

 {{{
 function wp_ajax_untrash_post( $action ) {
         if ( empty( $action ) )
                 $action = 'untrash-post';
         wp_ajax_trash_post( $action );
 }
 }}}

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


More information about the wp-trac mailing list