ID; } else { wp_die(__('Invalid user ID.')); } switch ($action) { case 'switchposts': check_admin_referer(); /* TODO: Switch all posts from one user to another user */ break; case 'update': check_admin_referer('update-user_' . $user_id); if ( !current_user_can('edit_user', $user_id) ) wp_die(__('You do not have permission to edit this user.')); if ( $is_profile_page ) { do_action('personal_options_update'); } $errors = edit_user($user_id); if( !is_wp_error( $errors ) ) { $redirect = ($is_profile_page? "profile.php?" : "user-edit.php?user_id=$user_id&"). "updated=true"; $redirect = add_query_arg('wp_http_referer', urlencode($wp_http_referer), $redirect); wp_redirect($redirect); exit; } default: $profileuser = get_user_to_edit($user_id); if ( !current_user_can('edit_user', $user_id) ) wp_die(__('You do not have permission to edit this user.')); include ('admin-header.php'); ?>

Name

'; ?>
Your username can not be changed

Contact Info

Required





caps) > count($profileuser->roles)): ?>
caps as $cap => $value) { if(!$wp_roles->is_role($cap)) { if($output != '') $output .= ', '; $output .= $value ? $cap : "Denied: {$cap}"; } } echo $output; ?>