Index: wp-admin/plugins.php
===================================================================
--- wp-admin/plugins.php	(revision 11361)
+++ wp-admin/plugins.php	(working copy)
@@ -11,10 +11,8 @@
 
 if ( isset($_POST['clear-recent-list']) )
 	$action = 'clear-recent-list';
-elseif ( isset($_GET['action']) )
-	$action = $_GET['action'];
-elseif ( isset($_POST['action']) )
-	$action = $_POST['action'];
+elseif ( isset($_REQUEST['action']) )
+	$action = $_REQUEST['action'];
 else
 	$action = false;
 
@@ -288,6 +286,11 @@
 }
 
 $plugin_array_name = "${status}_plugins";
+if ( empty($$plugin_array_name) && $status != 'all' ) {
+	$status = 'all';
+	$plugin_array_name = "${status}_plugins";
+}
+
 $plugins = &$$plugin_array_name;
 
 //Paging.
@@ -363,6 +366,9 @@
 		if ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
 			$actions[] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>';
 
+		if ( ! $is_active && current_user_can('delete_plugins') )
+			$actions[] = '<a href="' . wp_nonce_url('plugins.php?action=delete-selected&amp;checked[]=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page, 'bulk-manage-plugins') . '" title="' . __('Delete this plugin') . '" class="delete">' . __('Delete') . '</a>';
+
 		$actions = apply_filters( 'plugin_action_links', $actions, $plugin_file, $plugin_data, $context );
 		$actions = apply_filters( "plugin_action_links_$plugin_file", $actions, $plugin_file, $plugin_data, $context );
 		$action_count = count($actions);
