From 50b9728d6aa99881a9cdb70a3d190b5f8fb67edd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov <sergeybiryukov@git.wordpress.org> Date: Thu, 11 Oct 2018 04:22:05 +0000 Subject: [PATCH] Privacy: Revert [43624] from the 4.9 branch. This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x. See #44685. git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43708 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index a55fb15812..ef3bc57dea 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -3430,7 +3430,7 @@ function wp_validate_user_request_key( $request_id, $key ) { } if ( ! in_array( $request->status, array( 'request-pending', 'request-failed' ), true ) ) { - return new WP_Error( 'expired_link', __( 'This link has expired.' ) ); + return __( 'This link has expired.' ); } if ( empty( $key ) ) {