Just a little tidying
git-svn-id: https://develop.svn.wordpress.org/trunk@1866 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fb26f2cb34
commit
8c3c69dac1
|
@ -80,11 +80,8 @@ case 'update':
|
||||||
$newuser_idmode=$_POST['newuser_idmode'];
|
$newuser_idmode=$_POST['newuser_idmode'];
|
||||||
$user_description = $_POST['user_description'];
|
$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("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..."));
|
|
||||||
}
|
|
||||||
header('Location: profile.php?updated=true');
|
header('Location: profile.php?updated=true');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue