Fixes #1825 again so people can't demote themselves

git-svn-id: https://develop.svn.wordpress.org/trunk@3064 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-11-13 04:56:05 +00:00
parent 8d259b4562
commit 6666f2ac8f

View File

@ -282,9 +282,6 @@ function edit_user($user_id = 0) {
$user->role = $_POST['role'];
}
if (isset ($_POST['role'])) {
$user->role = $_POST['role'];
}
if (isset ($_POST['email']))
$user->user_email = wp_specialchars(trim($_POST['email']));
if (isset ($_POST['url'])) {