Permalink
Browse files

using __return_empty_array on bulk action filter

  • Loading branch information...
1 parent b8b3ab5 commit c588fa0089bdcd2dabc74095defea1ce455029d3 @chrisguitarguy committed Mar 9, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 inc/admin.php
View
@@ -68,7 +68,7 @@ function init()
add_filter( 'views_' . $screen->id, array( &$this, 'views_again' ) );
add_filter( 'all_plugins', array( &$this, 'filter_plugins' ) );
// TODO: support bulk actions
- add_filter( 'bulk_actions-' . $screen->id, array( &$this, 'kill_bulk' ) );
+ add_filter( 'bulk_actions-' . $screen->id, '__return_empty_array' );
add_filter( 'plugin_action_links', array( &$this, 'action_links' ), 10, 2 );
add_action( 'admin_enqueue_scripts', array( &$this, 'scripts' ) );
}
@@ -124,14 +124,6 @@ function filter_plugins( $plugins )
}
/**
- * Kill the bull actions by returning an empty array
- */
- function kill_bulk()
- {
- return array();
- }
-
- /**
* Correct some action links so we can actually "activate" plugins
*/
function action_links( $links, $plugin_file )

0 comments on commit c588fa0

Please sign in to comment.