WordPress.org

Make WordPress Core

Changeset 35764


Ignore:
Timestamp:
12/04/2015 03:30:17 PM (4 years ago)
Author:
ocean90
Message:

Reset Password: Add a missing new operator for WP_Error in get_password_reset_key().

Missed in [34923].

Fixes #34180.

File:
1 edited

Legend:

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

    r35742 r35764  
    19721972    $key_saved = $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user->user_login ) );
    19731973    if ( false === $key_saved ) {
    1974         return WP_Error( 'no_password_key_update', __( 'Could not save password reset key to database.' ) );
     1974        return new WP_Error( 'no_password_key_update', __( 'Could not save password reset key to database.' ) );
    19751975    }
    19761976
Note: See TracChangeset for help on using the changeset viewer.