mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57226 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c973689ff4
commit
e98fe1f0d7
@ -38,7 +38,7 @@ final class WP_Recovery_Mode_Key_Service {
|
||||
*
|
||||
* @since 5.2.0
|
||||
*
|
||||
* @global PasswordHash $wp_hasher
|
||||
* @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
|
||||
*
|
||||
* @param string $token A token generated by {@see generate_recovery_mode_token()}.
|
||||
* @return string Recovery mode key.
|
||||
@ -85,7 +85,7 @@ final class WP_Recovery_Mode_Key_Service {
|
||||
*
|
||||
* @since 5.2.0
|
||||
*
|
||||
* @global PasswordHash $wp_hasher
|
||||
* @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
|
||||
*
|
||||
* @param string $token The token used when generating the given key.
|
||||
* @param string $key The unhashed key.
|
||||
|
||||
@ -2528,7 +2528,7 @@ if ( ! function_exists( 'wp_hash_password' ) ) :
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global PasswordHash $wp_hasher PHPass object
|
||||
* @global PasswordHash $wp_hasher PHPass object.
|
||||
*
|
||||
* @param string $password Plain text user password to hash.
|
||||
* @return string The hash string of the password.
|
||||
|
||||
@ -2875,7 +2875,7 @@ function wp_get_password_hint() {
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @global PasswordHash $wp_hasher Portable PHP password hashing framework.
|
||||
* @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
|
||||
*
|
||||
* @param WP_User $user User to retrieve password reset key for.
|
||||
* @return string|WP_Error Password reset key on success. WP_Error on error.
|
||||
@ -3047,8 +3047,8 @@ function check_password_reset_key( $key, $login ) {
|
||||
* @since 2.5.0
|
||||
* @since 5.7.0 Added `$user_login` parameter.
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global PasswordHash $wp_hasher Portable PHP password hashing framework.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
|
||||
*
|
||||
* @param string $user_login Optional. Username to send a password retrieval email for.
|
||||
* Defaults to `$_POST['user_login']` if not set.
|
||||
@ -4817,6 +4817,8 @@ All at ###SITENAME###
|
||||
*
|
||||
* @since 4.9.6
|
||||
*
|
||||
* @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
|
||||
*
|
||||
* @param int $request_id Request ID.
|
||||
* @return string Confirmation key.
|
||||
*/
|
||||
@ -4848,6 +4850,8 @@ function wp_generate_user_request_key( $request_id ) {
|
||||
*
|
||||
* @since 4.9.6
|
||||
*
|
||||
* @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
|
||||
*
|
||||
* @param string $request_id ID of the request being confirmed.
|
||||
* @param string $key Provided key to validate.
|
||||
* @return true|WP_Error True on success, WP_Error on failure.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user