From 725074903206fa953602447e133caa180040e6ff Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Fri, 4 Dec 2015 15:31:26 +0000 Subject: [PATCH] Reset Password: Add a missing `new` operator for `WP_Error` in `get_password_reset_key()`. Missed in [34923]. Fixes #34180. Built from https://develop.svn.wordpress.org/trunk@35764 git-svn-id: http://core.svn.wordpress.org/trunk@35728 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index 32b0ec7463..0abe79e7d2 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -1971,7 +1971,7 @@ function get_password_reset_key( $user ) { $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); $key_saved = $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user->user_login ) ); if ( false === $key_saved ) { - return WP_Error( 'no_password_key_update', __( 'Could not save password reset key to database.' ) ); + return new WP_Error( 'no_password_key_update', __( 'Could not save password reset key to database.' ) ); } return $key; diff --git a/wp-includes/version.php b/wp-includes/version.php index e1137f6904..e0c3c3d0ef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-RC1-35763'; +$wp_version = '4.4-RC1-35764'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.