Make WordPress Core

Changeset 56477

Timestamp:
08/27/2023 04:47:47 AM (12 months ago)
Author:
SergeyBiryukov
Message:

Users: Remove unused wpdb global in check_password_reset_key().

Follow-up to [45716].

Props upadalavipul.
See #59185.

File:
1 edited

Legend:

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

    r56352 r56477  
    29542954 * @since 3.1.0
    29552955 *
    2956  * @global wpdb         $wpdb      WordPress database object for queries.
    29572956 * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
    29582957 *
     
    29622961 */
    29632962function check_password_reset_key( $key, $login ) {
    2964     global $wpdb, $wp_hasher;
     2963    global $wp_hasher;
    29652964
    29662965    $key = preg_replace( '/[^a-z0-9]/i', '', $key );
Note: See TracChangeset for help on using the changeset viewer.