WordPress.org

Make WordPress Core

Ticket #16378: 16378.diff

File 16378.diff, 683 bytes (added by duck_, 3 years ago)

potentially replace with intersect_assoc

  • wp-admin/includes/class-wp-list-table.php

     
    271271                        $no_new_actions = $this->_actions = $this->get_bulk_actions(); 
    272272                        // This filter can currently only be used to remove actions. 
    273273                        $this->_actions = apply_filters( 'bulk_actions-' . $screen->id, $this->_actions ); 
    274                         $this->_actions = array_intersect_key( $this->_actions, $no_new_actions ); 
     274                        $this->_actions = array_intersect_assoc( $this->_actions, $no_new_actions ); 
    275275                        $two = ''; 
    276276                } else { 
    277277                        $two = '2';