Make WordPress Core

Changeset 57226


Ignore:
Timestamp:
12/24/2023 01:03:12 PM (15 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.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-recovery-mode-key-service.php

    r55397 r57226  
    3939     * @since 5.2.0
    4040     *
    41      * @global PasswordHash $wp_hasher
     41     * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
    4242     *
    4343     * @param string $token A token generated by {@see generate_recovery_mode_token()}.
     
    8686     * @since 5.2.0
    8787     *
    88      * @global PasswordHash $wp_hasher
     88     * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
    8989     *
    9090     * @param string $token The token used when generating the given key.
  • trunk/src/wp-includes/pluggable.php

    r56767 r57226  
    25292529     * @since 2.5.0
    25302530     *
    2531      * @global PasswordHash $wp_hasher PHPass object
     2531     * @global PasswordHash $wp_hasher PHPass object.
    25322532     *
    25332533     * @param string $password Plain text user password to hash.
  • 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.