context == 'edit') { // @note USER EDIT OR PROFILE FORM if ( $this->iscompat ) $selected_form = ' selected="true"'; $disabled_field = ' disabled="disabled"'; $pass_title = __('New Pass:', 'wphone'); if ( ($this->current_basename == 'profile.php') || !current_user_can('edit_users') ) { // @note PROFILE FORM global $userdata; $subcontext = 'profile'; $edit_user = get_user_to_edit($user_ID); $form_title = __('Your Profile'); $nonceid = 'update-profile_' . $edit_user->ID; $formaction = 'profile-update.php'; } else { // // @note USER EDIT FORM $this->check_user_permissions('edit_users'); $subcontext = 'edit'; $edit_id = (int) $_GET['user_id']; $edit_user = ($edit_id) ? get_user_to_edit($edit_id) : null; $form_title = __('Edit User'); $nonceid = 'update-user_' . $edit_user->ID; $formaction = 'user-edit.php'; } } else { // @note ADD FORM, LIKE WP AFTER USER LIST $this->check_user_permissions('edit_users'); $this->context = 'list'; $subcontext = 'add'; $form_title = __('Add New User'); $pass_title = __('Password:', 'wphone'); $nonceid = 'add-user'; $formaction = 'users.php'; if ( is_wp_error($add_user_errors) ) $selected_form = ' selected="true"'; } if ( ! $this->iscompat ) { // note we need this one conditional because the same form is used in multiple contexts echo '