Making WordPress.org


Ignore:
Timestamp:
01/18/2018 06:10:58 AM (8 years ago)
Author:
dd32
Message:

Login: Clear the user cache after updating the activation key, fetch the key directly from the database in the event the cached object doesn't have it temporarily.

Fixes #3390.

File:
1 edited

Legend:

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

    r5385 r6395  
    4949    }
    5050    $hashed_activation_key = time() . ':' . $wp_hasher->HashPassword( $activation_key );
    51     $bool = $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed_activation_key ), array( 'ID' => $user_id ) );
     51
     52    $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed_activation_key ), array( 'ID' => $user_id ) );
     53    clean_user_cache( $user_id );
    5254
    5355    if ( $user_mailinglist ) {
Note: See TracChangeset for help on using the changeset viewer.