Prevent new bulk actions from being added through the bulk_actions-screen filter. fixes #16031 at least for 3.1.
git-svn-id: https://develop.svn.wordpress.org/trunk@17297 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d9b266ed25
commit
fa0584e236
@ -264,11 +264,12 @@ class WP_List_Table {
|
||||
$screen = get_current_screen();
|
||||
|
||||
if ( is_null( $this->_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->_actions = apply_filters( 'bulk_actions-' . $screen->id, $this->_actions );
|
||||
$this->_actions = array_intersect_key( $this->_actions, $no_new_actions );
|
||||
$two = '';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$two = '2';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user