Load: Only load PasswordHash class when needed.
This reverts [38371] which loaded `class-phpass.php` early in `wp-settings.php` and in turn caused backward compatibility problems. Props DavidAnderson, ketuchetan. Fixes #39445. Built from https://develop.svn.wordpress.org/trunk@40387 git-svn-id: http://core.svn.wordpress.org/trunk@40294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -438,6 +438,7 @@ case 'postpass' :
|
||||
exit();
|
||||
}
|
||||
|
||||
require_once ABSPATH . WPINC . '/class-phpass.php';
|
||||
$hasher = new PasswordHash( 8, true );
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user