Make WordPress Core

Ticket #29148: 29148.diff

File 29148.diff, 1.4 KB (added by imath, 10 years ago)
  • src/wp-admin/includes/class-wp-plugins-list-table.php

     
    108108                                        unset( $recently_activated[$key] );
    109109                        update_option( 'recently_activated', $recently_activated );
    110110                }
    111                
     111
    112112                $plugin_info = get_site_transient( 'update_plugins' );
    113113
    114114                foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) {
     
    298298                return $actions;
    299299        }
    300300
    301         public function bulk_actions( $which ) {
     301        public function bulk_actions( $which = '' ) {
    302302                global $status;
    303303
    304304                if ( in_array( $status, array( 'mustuse', 'dropins' ) ) )
     
    402402                                        if ( ! is_multisite() && current_user_can('delete_plugins') )
    403403                                                $actions['delete'] = '<a href="' . wp_nonce_url('plugins.php?action=delete-selected&amp;checked[]=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'bulk-plugins') . '" title="' . esc_attr__('Delete this plugin') . '" class="delete">' . __('Delete') . '</a>';
    404404                                } // end if $is_active
    405                                
     405
    406406                         } // end if $screen->in_admin( 'network' )
    407407
    408408                        if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) && current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )