From 29c2f0154c180ecf92448e0f3f4e6430745c868b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 27 Aug 2023 04:47:47 +0000 Subject: [PATCH] Users: Remove unused `wpdb` global in `check_password_reset_key()`. Follow-up to [45716]. Props upadalavipul. See #59185. git-svn-id: https://develop.svn.wordpress.org/trunk@56477 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 0ee3a0d615..e6e66431a3 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -2953,7 +2953,6 @@ function get_password_reset_key( $user ) { * * @since 3.1.0 * - * @global wpdb $wpdb WordPress database object for queries. * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance. * * @param string $key Hash to validate sending user's password. @@ -2961,7 +2960,7 @@ function get_password_reset_key( $user ) { * @return WP_User|WP_Error WP_User object on success, WP_Error object for invalid or expired keys. */ function check_password_reset_key( $key, $login ) { - global $wpdb, $wp_hasher; + global $wp_hasher; $key = preg_replace( '/[^a-z0-9]/i', '', $key );