WP_Plugins_List_Table::bulk_actions() method declaration should match WP_List_Table, see [29440].
props imath. fixes #29148. Built from https://develop.svn.wordpress.org/trunk@29453 git-svn-id: http://core.svn.wordpress.org/trunk@29231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d11bb9bc50
commit
09e61f534b
|
@ -108,7 +108,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
unset( $recently_activated[$key] );
|
||||
update_option( 'recently_activated', $recently_activated );
|
||||
}
|
||||
|
||||
|
||||
$plugin_info = get_site_transient( 'update_plugins' );
|
||||
|
||||
foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) {
|
||||
|
@ -298,7 +298,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
return $actions;
|
||||
}
|
||||
|
||||
public function bulk_actions( $which ) {
|
||||
public function bulk_actions( $which = '' ) {
|
||||
global $status;
|
||||
|
||||
if ( in_array( $status, array( 'mustuse', 'dropins' ) ) )
|
||||
|
@ -402,7 +402,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
if ( ! is_multisite() && current_user_can('delete_plugins') )
|
||||
$actions['delete'] = '<a href="' . wp_nonce_url('plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins') . '" title="' . esc_attr__('Delete this plugin') . '" class="delete">' . __('Delete') . '</a>';
|
||||
} // end if $is_active
|
||||
|
||||
|
||||
} // end if $screen->in_admin( 'network' )
|
||||
|
||||
if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) && current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
|
||||
|
|
Loading…
Reference in New Issue