Actually delete user.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
546ca665d5
commit
4f501b1bd6
|
@ -151,9 +151,10 @@ case 'delete':
|
|||
$wpdb->query("DELETE FROM $tablelinks WHERE link_owner = $id");
|
||||
// Delete posts
|
||||
$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');
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue