Use array_intersec_assoc. props duck_, fixes #16378.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-01-27 19:37:38 +00:00
parent f2feff7453
commit 277be4ce51
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ class WP_List_Table {
$no_new_actions = $this->_actions = $this->get_bulk_actions();
// This filter can currently only be used to remove actions.
$this->_actions = apply_filters( 'bulk_actions-' . $screen->id, $this->_actions );
$this->_actions = array_intersect_key( $this->_actions, $no_new_actions );
$this->_actions = array_intersect_assoc( $this->_actions, $no_new_actions );
$two = '';
} else {
$two = '2';