Actually delete user.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-04-30 04:41:47 +00:00
parent 546ca665d5
commit 4f501b1bd6

View File

@ -151,9 +151,10 @@ case 'delete':
$wpdb->query("DELETE FROM $tablelinks WHERE link_owner = $id"); $wpdb->query("DELETE FROM $tablelinks WHERE link_owner = $id");
// Delete posts // Delete posts
$wpdb->query("DELETE FROM $tableposts WHERE post_author = $id"); $wpdb->query("DELETE FROM $tableposts WHERE post_author = $id");
// FINALLY, delete user
$wpdb->query("DELETE FROM $tableusers WHERE ID = $id");
} }
// FINALLY, delete user
$wpdb->query("DELETE FROM $tableusers WHERE ID = $id");
header('Location: users.php?deleted=true'); header('Location: users.php?deleted=true');
break; break;