Making WordPress.org


Ignore:
Timestamp:
04/20/2017 09:42:51 AM (8 years ago)
Author:
ocean90
Message:

Login: Make sure that the PasswordHash class exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register-confirm.php

    r4951 r5385  
    2020    list( $reset_time, $hashed_activation_key ) = explode( ':', $user->user_activation_key, 2 );
    2121
    22     $wp_hasher = new PasswordHash( 8, true );
     22    if ( empty( $wp_hasher ) ) {
     23        require_once ABSPATH . WPINC . '/class-phpass.php';
     24        $wp_hasher = new PasswordHash( 8, true );
     25    }
    2326    $can_access = $wp_hasher->CheckPassword( $confirm_key, $hashed_activation_key );
    2427
Note: See TracChangeset for help on using the changeset viewer.