Make WordPress Core


Ignore:
Timestamp:
12/24/2023 01:03:12 PM (16 months ago)
Author:
SergeyBiryukov
Message:

Docs: Document the $wp_hasher global in wp_generate_user_request_key().

Includes adding a description for the global in a few other functions.

Follow-up to [42791], [42964], [43008].

Props viralsampat.
See #60021.

File:
1 edited

Legend:

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

    r56572 r57226  
    28762876 * @since 4.4.0
    28772877 *
    2878  * @global PasswordHash $wp_hasher Portable PHP password hashing framework.
     2878 * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
    28792879 *
    28802880 * @param WP_User $user User to retrieve password reset key for.
     
    30483048 * @since 5.7.0 Added `$user_login` parameter.
    30493049 *
    3050  * @global wpdb         $wpdb       WordPress database abstraction object.
    3051  * @global PasswordHash $wp_hasher  Portable PHP password hashing framework.
     3050 * @global wpdb         $wpdb      WordPress database abstraction object.
     3051 * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
    30523052 *
    30533053 * @param string $user_login Optional. Username to send a password retrieval email for.
     
    48184818 * @since 4.9.6
    48194819 *
     4820 * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
     4821 *
    48204822 * @param int $request_id Request ID.
    48214823 * @return string Confirmation key.
     
    48484850 *
    48494851 * @since 4.9.6
     4852 *
     4853 * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
    48504854 *
    48514855 * @param string $request_id ID of the request being confirmed.
Note: See TracChangeset for help on using the changeset viewer.