Changeset 35280 for trunk/src/wp-includes/user-functions.php
- Timestamp:
- 10/20/2015 05:27:32 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/user-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user-functions.php
r35189 r35280 1276 1276 $userdata = $userdata->to_array(); 1277 1277 } 1278 1278 1279 // Are we updating or creating? 1279 1280 if ( ! empty( $userdata['ID'] ) ) { 1280 1281 $ID = (int) $userdata['ID']; 1281 1282 $update = true; 1282 $old_user_data = WP_User::get_data_by( 'id', $ID ); 1283 $old_user_data = get_userdata( $ID ); 1284 1285 if ( ! $old_user_data ) { 1286 return new WP_Error( 'invalid_user_id', __( 'Invalid user ID.' ) ); 1287 } 1288 1283 1289 // hashed in wp_update_user(), plaintext if called directly 1284 1290 $user_pass = $userdata['user_pass'];
Note: See TracChangeset
for help on using the changeset viewer.