Use array_intersec_assoc. props duck_, fixes #16378.

git-svn-id: https://develop.svn.wordpress.org/trunk@17369 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-27 19:37:38 +00:00
parent 0d8d463048
commit cea40dfbeb

View File

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