Fixes #1825 again so people can't demote themselves
git-svn-id: http://svn.automattic.com/wordpress/trunk@3064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4e25506c93
commit
c45ca605cb
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in New Issue