mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +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:
+2
-2
@@ -348,7 +348,7 @@ function retrieve_password() {
|
||||
|
||||
// Now insert the key, hashed, into the DB.
|
||||
if ( empty( $wp_hasher ) ) {
|
||||
require_once ABSPATH . 'wp-includes/class-phpass.php';
|
||||
require_once ABSPATH . WPINC . '/class-phpass.php';
|
||||
$wp_hasher = new PasswordHash( 8, true );
|
||||
}
|
||||
$hashed = $wp_hasher->HashPassword( $key );
|
||||
@@ -450,7 +450,7 @@ $interim_login = isset($_REQUEST['interim-login']);
|
||||
switch ($action) {
|
||||
|
||||
case 'postpass' :
|
||||
require_once ABSPATH . 'wp-includes/class-phpass.php';
|
||||
require_once ABSPATH . WPINC . '/class-phpass.php';
|
||||
$hasher = new PasswordHash( 8, true );
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user