mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Use the WPINC constant when loading class-phpass.php
Props wojtek.szkutnik See #14157. git-svn-id: https://develop.svn.wordpress.org/trunk@28903 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1860,7 +1860,7 @@ function wp_hash_password($password) {
|
||||
global $wp_hasher;
|
||||
|
||||
if ( empty($wp_hasher) ) {
|
||||
require_once( ABSPATH . 'wp-includes/class-phpass.php');
|
||||
require_once( ABSPATH . WPINC . '/class-phpass.php');
|
||||
// By default, use the portable hash from phpass
|
||||
$wp_hasher = new PasswordHash(8, true);
|
||||
}
|
||||
@@ -1918,7 +1918,7 @@ function wp_check_password($password, $hash, $user_id = '') {
|
||||
// If the stored hash is longer than an MD5, presume the
|
||||
// new style phpass portable hash.
|
||||
if ( empty($wp_hasher) ) {
|
||||
require_once( ABSPATH . 'wp-includes/class-phpass.php');
|
||||
require_once( ABSPATH . WPINC . '/class-phpass.php');
|
||||
// By default, use the portable hash from phpass
|
||||
$wp_hasher = new PasswordHash(8, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user