WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/06/2017 06:00:16 PM (2 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/user.php

    r39600 r40387  
    21222122    // Now insert the key, hashed, into the DB.
    21232123    if ( empty( $wp_hasher ) ) {
     2124        require_once ABSPATH . WPINC . '/class-phpass.php';
    21242125        $wp_hasher = new PasswordHash( 8, true );
    21252126    }
     
    21662167
    21672168    if ( empty( $wp_hasher ) ) {
     2169        require_once ABSPATH . WPINC . '/class-phpass.php';
    21682170        $wp_hasher = new PasswordHash( 8, true );
    21692171    }
Note: See TracChangeset for help on using the changeset viewer.