mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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");
|
$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;
|
||||||
|
Loading…
Reference in New Issue
Block a user