WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/12/05 23:14:52 (10 years ago)
Author:
matt
Message:

More user updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/profile.php

    r2628 r2632  
    8585    $user_description = $_POST['user_description']; 
    8686 
    87     $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"); 
     87    $result = $wpdb->query("UPDATE $wpdb->users SET $updatepassword user_email='$newuser_email', user_url='$newuser_url', user_nicename = '$newuser_nicename' WHERE ID = $user_ID"); 
     88 
     89    update_user_meta( $user_ID, 'first_name', $newuser_firstname ); 
     90    update_user_meta( $user_ID, 'last_name', $newuser_lastname ); 
     91    update_user_meta( $user_ID, 'nickname', $newuser_nickname ); 
     92    update_user_meta( $user_ID, 'description', $user_description ); 
     93    update_user_meta( $user_ID, 'icq', $newuser_icq ); 
     94    update_user_meta( $user_ID, 'aim', $newuser_aim ); 
     95    update_user_meta( $user_ID, 'msn', $newuser_msn ); 
     96    update_user_meta( $user_ID, 'yim', $newuser_yim ); 
    8897 
    8998    do_action('profile_update', $user_ID); 
Note: See TracChangeset for help on using the changeset viewer.