Index: wp-admin/plugins.php
===================================================================
--- wp-admin/plugins.php	(revision 4850)
+++ wp-admin/plugins.php	(working copy)
@@ -25,6 +25,16 @@
 		update_option('active_plugins', $current);
 		do_action('deactivate_' . trim( $_GET['plugin'] ));
 		wp_redirect('plugins.php?deactivate=true');
+	} else if ( 'deactivate-all' == $_GET['action'] ) {
+		check_admin_referer('deactivate-all');
+		$current = get_option('active_plugins');
+
+		foreach ( $current as $plugin ) {
+			array_splice($current, array_search( $plugin, $current), 1 );
+			do_action('deactivate_' . $plugin);
+		}
+		update_option('active_plugins', $current);
+		wp_redirect('plugins.php?deactivate-all=true');
 	}
 	exit;
 }
@@ -66,7 +76,10 @@
 <div id="message" class="updated fade"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p>
 </div>
 <?php endif; ?>
-
+<?php if (isset($_GET['deactivate-all'])) : ?>
+<div id="message" class="updated fade"><p><?php _e('All plugins <strong>deactivated</strong>.') ?></p>
+</div>
+<?php endif; ?>
 <div class="wrap">
 <h2><?php _e('Plugin Management'); ?></h2>
 <p><?php _e('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.'); ?></p>
@@ -140,8 +153,9 @@
 }
 ?>
 
-<p><?php printf(__('If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.'), PLUGINDIR); ?></p>
+<p><?php printf(__('If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated. Alternatively, you can also <a href="%s">deactivate all plugins</a>!'), PLUGINDIR, wp_nonce_url('plugins.php?action=deactivate-all')); ?></p>
 
+
 <h2><?php _e('Get More Plugins'); ?></h2>
 <p><?php _e('You can find additional plugins for your site in the <a href="http://wordpress.org/extend/plugins/">WordPress plugin directory</a>.'); ?></p>
 <p><?php printf(__('To install a plugin you generally just need to upload the plugin file into your <code>%s</code> directory. Once a plugin is uploaded, you may activate it here.'), PLUGINDIR); ?></p>

