Property changes on: .
___________________________________________________________________
Added: svn:ignore
+ .pluggable.php.swp
|
|
|
1419 | 1419 | $wp_hasher = new PasswordHash(8, true); |
1420 | 1420 | } |
1421 | 1421 | |
1422 | | return $wp_hasher->HashPassword($password); |
| 1422 | return $wp_hasher->HashPassword(trim($password)); |
1423 | 1423 | } |
1424 | 1424 | endif; |
1425 | 1425 | |
… |
… |
|
1566 | 1566 | function wp_set_password( $password, $user_id ) { |
1567 | 1567 | global $wpdb; |
1568 | 1568 | |
1569 | | $hash = wp_hash_password( trim( $password ) ); |
| 1569 | $hash = wp_hash_password( $password ); |
1570 | 1570 | $wpdb->update($wpdb->users, array('user_pass' => $hash, 'user_activation_key' => ''), array('ID' => $user_id) ); |
1571 | 1571 | |
1572 | 1572 | wp_cache_delete($user_id, 'users'); |