Add missing `@param` doc to `wp_check_password()` and update the `check_password` filter docs.
See #32246 git-svn-id: https://develop.svn.wordpress.org/trunk@35909 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
69c27ec4fc
commit
a8ee60eebc
|
@ -2074,6 +2074,7 @@ if ( !function_exists('wp_check_password') ) :
|
|||
*
|
||||
* @param string $password Plaintext user's password
|
||||
* @param string $hash Hash of the user's password to check against.
|
||||
* @param string|int $user_id Optional. User ID.
|
||||
* @return bool False, if the $password does not match the hashed password
|
||||
*/
|
||||
function wp_check_password($password, $hash, $user_id = '') {
|
||||
|
@ -2096,7 +2097,7 @@ function wp_check_password($password, $hash, $user_id = '') {
|
|||
* @param bool $check Whether the passwords match.
|
||||
* @param string $password The plaintext password.
|
||||
* @param string $hash The hashed password.
|
||||
* @param int $user_id User ID.
|
||||
* @param string|int $user_id User ID. Can be empty.
|
||||
*/
|
||||
return apply_filters( 'check_password', $check, $password, $hash, $user_id );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue