Ticket #15458: 15458.6.diff
File 15458.6.diff, 647 bytes (added by , 13 years ago) |
---|
-
wp-includes/user.php
1414 1414 // First, get all of the original fields 1415 1415 $user = WP_User::get_data_by('id', $ID); 1416 1416 1417 $user = get_object_vars( $user ); 1418 $meta = get_user_meta( $ID ); 1419 1420 foreach ( $meta as $key => $value ) { 1421 $user[ $key ] = $value[ 0 ]; 1422 } 1423 1417 1424 // Escape data pulled from DB. 1418 $user = add_magic_quotes( get_object_vars($user));1425 $user = add_magic_quotes( $user ); 1419 1426 1420 1427 // If password is changing, hash it now. 1421 1428 if ( ! empty($userdata['user_pass']) ) {