mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Users: Remove unused wpdb
global in check_password_reset_key()
.
Follow-up to [45716]. Props upadalavipul. See #59185. Built from https://develop.svn.wordpress.org/trunk@56477 git-svn-id: http://core.svn.wordpress.org/trunk@55989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fb7c6f3df9
commit
c9c4cf7b02
@ -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 );
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.4-alpha-56476';
|
||||
$wp_version = '6.4-alpha-56477';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user