mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
8d259b4562
commit
6666f2ac8f
@ -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
Block a user