Make WordPress Core

Ticket #16031: 16031-no-new.diff

File 16031-no-new.diff, 751 bytes (added by nacin, 14 years ago)
  • wp-admin/includes/class-wp-list-table.php

     
    264264                $screen = get_current_screen();
    265265
    266266                if ( is_null( $this->_actions ) ) {
    267                         $this->_actions = $this->get_bulk_actions();
     267                        $no_new_actions = $this->_actions = $this->get_bulk_actions();
     268                        // This filter can currently only be used to remove actions.
    268269                        $this->_actions = apply_filters( 'bulk_actions-' . $screen->id, $this->_actions );
     270                        $this->_actions = array_intersect_key( $this->_actions, $no_new_actions );
    269271                        $two = '';
    270                 }
    271                 else {
     272                } else {
    272273                        $two = '2';
    273274                }
    274275