[wp-trac] [WordPress Trac] #16031: New bulk actions hook missing catcher behavior

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 29 20:31:04 UTC 2010


#16031: New bulk actions hook missing catcher behavior
----------------------------+--------------------------------
 Reporter:  Veraxus         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.1
 Severity:  normal          |   Keywords:  bulk_actions, bulk
----------------------------+--------------------------------
 The new bulk actions filter allows you to modify the bulk-actions arrays,
 but neglects to add the ability to handle the new custom actions.

 The fix is to simply add one new do_action() hook to the default case of
 each affected page (similar to the way 'wp_ajax_' handles custom ajax
 requests).

 For example, the following might be added to users.php at line 285,
 immediately after <tt>default:</tt>

 do_action( 'bulk_action-'. $wp_list_table->current_action() );

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16031>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list