Make WordPress Core


Ignore:
Timestamp:
04/06/2017 06:00:16 PM (9 years ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r40363 r40387  
    18061806        // Now insert the key, hashed, into the DB.
    18071807        if ( empty( $wp_hasher ) ) {
     1808                require_once ABSPATH . WPINC . '/class-phpass.php';
    18081809                $wp_hasher = new PasswordHash( 8, true );
    18091810        }
     
    20862087
    20872088        if ( empty($wp_hasher) ) {
     2089                require_once( ABSPATH . WPINC . '/class-phpass.php');
    20882090                // By default, use the portable hash from phpass
    20892091                $wp_hasher = new PasswordHash(8, true);
     
    21452147        // new style phpass portable hash.
    21462148        if ( empty($wp_hasher) ) {
     2149                require_once( ABSPATH . WPINC . '/class-phpass.php');
    21472150                // By default, use the portable hash from phpass
    21482151                $wp_hasher = new PasswordHash(8, true);
Note: See TracChangeset for help on using the changeset viewer.