Make WordPress Core

Changeset 38371


Ignore:
Timestamp:
08/26/2016 05:39:37 PM (10 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.

Location:
trunk/src
Files:
5 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);
  • trunk/src/wp-includes/post-template.php

    r38348 r38371  
    786786                return true;
    787787
    788         require_once ABSPATH . WPINC . '/class-phpass.php';
    789788        $hasher = new PasswordHash( 8, true );
    790789
  • trunk/src/wp-includes/user.php

    r38125 r38371  
    20962096        // Now insert the key, hashed, into the DB.
    20972097        if ( empty( $wp_hasher ) ) {
    2098                 require_once ABSPATH . WPINC . '/class-phpass.php';
    20992098                $wp_hasher = new PasswordHash( 8, true );
    21002099        }
    … …  
    21412140
    21422141        if ( empty( $wp_hasher ) ) {
    2143                 require_once ABSPATH . WPINC . '/class-phpass.php';
    21442142                $wp_hasher = new PasswordHash( 8, true );
    21452143        }
  • trunk/src/wp-login.php

    r38307 r38371  
    440440        }
    441441
    442         require_once ABSPATH . WPINC . '/class-phpass.php';
    443442        $hasher = new PasswordHash( 8, true );
    444443
  • trunk/src/wp-settings.php

    r38364 r38371  
    9696require( ABSPATH . WPINC . '/class-wp-error.php' );
    9797require( ABSPATH . WPINC . '/pomo/mo.php' );
     98require( ABSPATH . WPINC . '/class-phpass.php' );
    9899
    99100// Include the wpdb class and, if present, a db.php database drop-in.
Note: See TracChangeset for help on using the changeset viewer.