Ticket #29148: 29148.diff
File 29148.diff, 1.4 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-plugins-list-table.php
108 108 unset( $recently_activated[$key] ); 109 109 update_option( 'recently_activated', $recently_activated ); 110 110 } 111 111 112 112 $plugin_info = get_site_transient( 'update_plugins' ); 113 113 114 114 foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) { … … 298 298 return $actions; 299 299 } 300 300 301 public function bulk_actions( $which ) {301 public function bulk_actions( $which = '' ) { 302 302 global $status; 303 303 304 304 if ( in_array( $status, array( 'mustuse', 'dropins' ) ) ) … … 402 402 if ( ! is_multisite() && current_user_can('delete_plugins') ) 403 403 $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>'; 404 404 } // end if $is_active 405 405 406 406 } // end if $screen->in_admin( 'network' ) 407 407 408 408 if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) && current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )