mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Just a little tidying
git-svn-id: http://svn.automattic.com/wordpress/trunk@1866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f4dcbb2a3b
commit
3985990228
@ -66,25 +66,22 @@ case 'update':
|
||||
setcookie('wordpresspass_' . COOKIEHASH, md5(md5($newuser_pass)), time() + 31536000, COOKIEPATH);
|
||||
}
|
||||
|
||||
$newuser_firstname=$_POST['newuser_firstname'];
|
||||
$newuser_lastname=$_POST['newuser_lastname'];
|
||||
$newuser_nickname=$_POST['newuser_nickname'];
|
||||
$newuser_nicename=sanitize_title($newuser_nickname);
|
||||
$newuser_icq=$_POST['newuser_icq'];
|
||||
$newuser_aim=$_POST['newuser_aim'];
|
||||
$newuser_msn=$_POST['newuser_msn'];
|
||||
$newuser_yim=$_POST['newuser_yim'];
|
||||
$newuser_email=$_POST['newuser_email'];
|
||||
$newuser_url=$_POST['newuser_url'];
|
||||
$newuser_firstname = $_POST['newuser_firstname'];
|
||||
$newuser_lastname = $_POST['newuser_lastname'];
|
||||
$newuser_nickname = $_POST['newuser_nickname'];
|
||||
$newuser_nicename = sanitize_title($newuser_nickname);
|
||||
$newuser_icq = $_POST['newuser_icq'];
|
||||
$newuser_aim = $_POST['newuser_aim'];
|
||||
$newuser_msn = $_POST['newuser_msn'];
|
||||
$newuser_yim = $_POST['newuser_yim'];
|
||||
$newuser_email = $_POST['newuser_email'];
|
||||
$newuser_url = $_POST['newuser_url'];
|
||||
$newuser_url = preg_match('/^(https?|ftps?|mailto|news|gopher):/is', $newuser_url) ? $newuser_url : 'http://' . $newuser_url;
|
||||
$newuser_idmode=$_POST['newuser_idmode'];
|
||||
$user_description = $_POST['user_description'];
|
||||
|
||||
$query = "UPDATE $wpdb->users SET user_firstname='$newuser_firstname', $updatepassword user_lastname='$newuser_lastname', user_nickname='$newuser_nickname', user_icq='$newuser_icq', user_email='$newuser_email', user_url='$newuser_url', user_aim='$newuser_aim', user_msn='$newuser_msn', user_yim='$newuser_yim', user_idmode='$newuser_idmode', user_description = '$user_description', user_nicename = '$newuser_nicename' WHERE ID = $user_ID";
|
||||
$result = $wpdb->query($query);
|
||||
if (!$result) {
|
||||
die (__("<strong>ERROR</strong>: couldn't update your profile..."));
|
||||
}
|
||||
$result = $wpdb->query("UPDATE $wpdb->users SET user_firstname='$newuser_firstname', $updatepassword user_lastname='$newuser_lastname', user_nickname='$newuser_nickname', user_icq='$newuser_icq', user_email='$newuser_email', user_url='$newuser_url', user_aim='$newuser_aim', user_msn='$newuser_msn', user_yim='$newuser_yim', user_idmode='$newuser_idmode', user_description = '$user_description', user_nicename = '$newuser_nicename' WHERE ID = $user_ID");
|
||||
|
||||
header('Location: profile.php?updated=true');
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user