Changeset 2995 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 11/06/2005 03:58:52 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r2979 r2995 257 257 258 258 function edit_user($user_id = 0) { 259 global $current_user, $wp_roles; 259 260 260 261 if ($user_id != 0) { … … 277 278 $pass2 = $_POST['pass2']; 278 279 280 if (isset ($_POST['role'])) { 281 if($user_id != $current_user->id || $wp_roles->role_objects[$_POST['role']]->has_cap('edit_users')) 282 $user->role = $_POST['role']; 283 } 284 285 if (isset ($_POST['role'])) { 286 $user->role = $_POST['role']; 287 } 279 288 if (isset ($_POST['email'])) 280 289 $user->user_email = wp_specialchars(trim($_POST['email']));
Note: See TracChangeset
for help on using the changeset viewer.