Make WordPress Core

Changeset 28903


Ignore:
Timestamp:
06/29/2014 10:11:44 PM (10 years ago)
Author:
wonderboymusic
Message:

Use the WPINC constant when loading class-phpass.php

Props wojtek.szkutnik
See #14157.

Location:
trunk/src
Files:
4 edited

Legend:

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

    r28793 r28903  
    18611861
    18621862    if ( empty($wp_hasher) ) {
    1863         require_once( ABSPATH . 'wp-includes/class-phpass.php');
     1863        require_once( ABSPATH . WPINC . '/class-phpass.php');
    18641864        // By default, use the portable hash from phpass
    18651865        $wp_hasher = new PasswordHash(8, true);
     
    19191919    // new style phpass portable hash.
    19201920    if ( empty($wp_hasher) ) {
    1921         require_once( ABSPATH . 'wp-includes/class-phpass.php');
     1921        require_once( ABSPATH . WPINC . '/class-phpass.php');
    19221922        // By default, use the portable hash from phpass
    19231923        $wp_hasher = new PasswordHash(8, true);
  • trunk/src/wp-includes/post-template.php

    r28899 r28903  
    695695        return true;
    696696
    697     require_once ABSPATH . 'wp-includes/class-phpass.php';
     697    require_once ABSPATH . WPINC . '/class-phpass.php';
    698698    $hasher = new PasswordHash( 8, true );
    699699
  • trunk/src/wp-includes/user.php

    r28870 r28903  
    20042004
    20052005    if ( empty( $wp_hasher ) ) {
    2006         require_once ABSPATH . 'wp-includes/class-phpass.php';
     2006        require_once ABSPATH . WPINC . '/class-phpass.php';
    20072007        $wp_hasher = new PasswordHash( 8, true );
    20082008    }
  • trunk/src/wp-login.php

    r28896 r28903  
    349349    // Now insert the key, hashed, into the DB.
    350350    if ( empty( $wp_hasher ) ) {
    351         require_once ABSPATH . 'wp-includes/class-phpass.php';
     351        require_once ABSPATH . WPINC . '/class-phpass.php';
    352352        $wp_hasher = new PasswordHash( 8, true );
    353353    }
     
    451451
    452452case 'postpass' :
    453     require_once ABSPATH . 'wp-includes/class-phpass.php';
     453    require_once ABSPATH . WPINC . '/class-phpass.php';
    454454    $hasher = new PasswordHash( 8, true );
    455455
Note: See TracChangeset for help on using the changeset viewer.