WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/12/2005 11:14:52 PM (13 years ago)
Author:
matt
Message:

More user updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r2489 r2632  
    6767$new_description = $_POST['new_description'];
    6868
    69 $result = $wpdb->query("UPDATE $wpdb->users SET user_login = '$new_user_login', user_firstname = '$new_firstname', $updatepassword user_lastname='$new_lastname', user_nickname='$new_nickname', user_icq='$new_icq', user_email='$new_email', user_url='$new_url', user_aim='$new_aim', user_msn='$new_msn', user_yim='$new_yim', user_idmode='$new_idmode', user_description = '$new_description', user_nicename = '$new_nicename' WHERE ID = $user_id");
     69$result = $wpdb->query("UPDATE $wpdb->users SET user_login = '$new_user_login', $updatepassword user_email='$new_email', user_url='$new_url', user_nicename = '$new_nicename' WHERE ID = '$user_id'");
     70
     71update_user_meta( $user_ID, 'first_name', $new_firstname );
     72update_user_meta( $user_ID, 'last_name', $new_lastname );
     73update_user_meta( $user_ID, 'nickname', $new_nickname );
     74update_user_meta( $user_ID, 'description', $new_description );
     75update_user_meta( $user_ID, 'icq', $new_icq );
     76update_user_meta( $user_ID, 'aim', $new_aim );
     77update_user_meta( $user_ID, 'msn', $new_msn );
     78update_user_meta( $user_ID, 'yim', $new_yim );
    7079
    7180header("Location: user-edit.php?user_id=$user_id&updated=true");
Note: See TracChangeset for help on using the changeset viewer.