mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1418,7 +1418,7 @@ function wp_hash_password($password) {
|
||||
if ( empty($wp_hasher) ) {
|
||||
require_once( ABSPATH . 'wp-includes/class-phpass.php');
|
||||
// By default, use the portable hash from phpass
|
||||
$wp_hasher = new PasswordHash(8, TRUE);
|
||||
$wp_hasher = new PasswordHash(8, true);
|
||||
}
|
||||
|
||||
return $wp_hasher->HashPassword($password);
|
||||
@@ -1466,7 +1466,7 @@ function wp_check_password($password, $hash, $user_id = '') {
|
||||
if ( empty($wp_hasher) ) {
|
||||
require_once( ABSPATH . 'wp-includes/class-phpass.php');
|
||||
// By default, use the portable hash from phpass
|
||||
$wp_hasher = new PasswordHash(8, TRUE);
|
||||
$wp_hasher = new PasswordHash(8, true);
|
||||
}
|
||||
|
||||
$check = $wp_hasher->CheckPassword($password, $hash);
|
||||
|
||||
Reference in New Issue
Block a user