[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 01:55:33 UTC 2012


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

 * cc: kpayne@… (added)
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Just ran across this after the unit test patch was committed.  It looks
 like some of the ajax functions require a parameter:

 {{{
 function wp_ajax_delete_post( $action )
 function wp_ajax_trash_post( $action )
 function wp_ajax_untrash_post( $action )
 function wp_ajax_add_link_category( $action )
 function wp_ajax_get_comments( $action )
 function wp_ajax_replyto_comment( $action )
 function wp_ajax_add_user( $action )
 }}}

 The `$action` parameter is passed to `check_ajax_referer`.  The unit test
 is currently broken.

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


More information about the wp-trac mailing list