Index: link-manager.php
===================================================================
--- link-manager.php	(revision 2700)
+++ link-manager.php	(working copy)
@@ -66,6 +66,7 @@
 if ('' != $_POST['assign']) $action = 'assign';
 if ('' != $_POST['visibility']) $action = 'visibility';
 if ('' != $_POST['move']) $action = 'move';
+if ('' != $_POST['bulkdelete']) $action = 'bulkdelete';
 if ('' != $_POST['linkcheck']) $linkcheck = $_POST[linkcheck];
 
 switch ($action) {
@@ -270,6 +271,24 @@
     wp_redirect($this_file);
     break;
   } // end Delete
+  
+  case 'bulkdelete': {
+	check_admin_referer();
+	  
+	if($user_level < 5)
+		die(__("You're not qualified to swim here"));
+	
+	// let's clean this up a bit, just to be safe
+	foreach($_POST['linkcheck'] as $link_id) {
+		$links[] = (int) $link_id;
+	}
+	
+	$wpdb->query("DELETE FROM $wpdb->links WHERE (link_id = ".implode(" OR link_id = ", $links).")");
+	
+	wp_redirect($this_file);
+	
+	break;
+  } // end bulkdelete
 
   case 'linkedit': {
 	$xfn = true;
@@ -733,6 +752,9 @@
         <td>
           <?php _e('Move to category:'); category_dropdown('category'); ?> <input name="move" type="submit" id="move" value="<?php _e('Go') ?>" />
         </td>
+        <td>
+          <input name="bulkdelete" type="submit" id="bulkdelete" value="<?php _e('Delete Selected') ?>" onclick="return confirm('You are about to delete all selected links.\n  \'Cancel\' to stop, \'OK\' to delete.');"/>
+        </td>
         <td align="right">
           <a href="#" onclick="checkAll(document.getElementById('links')); return false; "><?php _e('Toggle Checkboxes') ?></a>
         </td>

