$current_user->ID, 'user_pass' => esc_attr($_POST['pass1']))); else $error[] = __('The passwords you entered do not match. Your password was not updated.', 'bigrecipe'); } // Update user url. if (!empty($_POST['url'])) wp_update_user(array('ID' => $current_user->ID, 'user_url' => esc_url($_POST['url']))); // Update user email. if (!empty($_POST['email'])) { if (!is_email(esc_attr($_POST['email']))) $error[] = __('The Email you entered is not valid. please try again.', 'bigrecipe'); elseif (email_exists(esc_attr($_POST['email'])) != $current_user->ID) $error[] = __('This email is already used by another user. try a different one.', 'bigrecipe'); else { wp_update_user(array('ID' => $current_user->ID, 'user_email' => esc_attr($_POST['email']))); } } // Update user First name. if (!empty($_POST['first-name'])) update_user_meta($current_user->ID, 'first_name', esc_attr($_POST['first-name'])); // Update user Last name. if (!empty($_POST['last-name'])) update_user_meta($current_user->ID, 'last_name', esc_attr($_POST['last-name'])); // Update user description. if (!empty($_POST['description'])) update_user_meta($current_user->ID, 'description', esc_attr($_POST['description'])); if (count($error) == 0) { //action hook for plugins and extra fields saving do_action('edit_user_profile_update', $current_user->ID); } } ?>

data->user_login; ?>


$v) { ?>