WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/26/2016 05:39:37 PM (4 years ago)
Author:
wonderboymusic
Message:

Load: load class-phpass.php (PasswordHash class) early in wp-settings.php, instead of require_once()'ing it in several places.

See #36335.

File:
1 edited

Legend:

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

    r38350 r38371  
    17401740    // Now insert the key, hashed, into the DB.
    17411741    if ( empty( $wp_hasher ) ) {
    1742         require_once ABSPATH . WPINC . '/class-phpass.php';
    17431742        $wp_hasher = new PasswordHash( 8, true );
    17441743    }
     
    20152014
    20162015    if ( empty($wp_hasher) ) {
    2017         require_once( ABSPATH . WPINC . '/class-phpass.php');
    20182016        // By default, use the portable hash from phpass
    20192017        $wp_hasher = new PasswordHash(8, true);
     
    20752073    // new style phpass portable hash.
    20762074    if ( empty($wp_hasher) ) {
    2077         require_once( ABSPATH . WPINC . '/class-phpass.php');
    20782075        // By default, use the portable hash from phpass
    20792076        $wp_hasher = new PasswordHash(8, true);
Note: See TracChangeset for help on using the changeset viewer.