Ticket #21495: 21495.patch
| File 21495.patch, 545 bytes (added by ancawonka, 11 months ago) |
|---|
-
wp-includes/user.php
1255 1255 $old_user_data = WP_User::get_data_by( 'id', $ID ); 1256 1256 } else { 1257 1257 $update = false; 1258 // check for a password 1259 if ( !isset($user_pass) || empty($user_pass) ){ 1260 return new WP_Error('empty_user_password', __('Cannot create a user with an empty password.') ); 1261 } 1258 1262 // Hash the password 1259 1263 $user_pass = wp_hash_password($user_pass); 1260 1264 }