From 4c926bf77ccd8a360f6754b4bb2b934719a0dfae Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 31 Jan 2023 12:16:23 +0000 Subject: [PATCH] Docs: Remove a duplicate line in the `send_auth_cookies` filter DocBlock. Describe the default values for the `$send` and `$expire` parameters. Follow-up to [55164]. See #56971, #39367. git-svn-id: https://develop.svn.wordpress.org/trunk@55165 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/pluggable.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index 24a760c07e..eda64ddb6a 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -1070,14 +1070,12 @@ if ( ! function_exists( 'wp_set_auth_cookie' ) ) : * Allows preventing auth cookies from actually being sent to the client. * * @since 4.7.4 + * @since 6.2.0 The `$user_id`, `$expire`, `$expiration`, an `$token` parameters were added. * - * @param bool $send Whether to send auth cookies to the client. - * @since 6.2.0 The `$user_id`, `$expire`, `$expiration` and, `$token` parameters were added. - * - * @param bool $send Whether to send auth cookies to the client. + * @param bool $send Whether to send auth cookies to the client. Default true. * @param int $user_id User ID. Zero when clearing cookies. * @param int $expire The time the login grace period expires as a UNIX timestamp. - * Zero when clearing cookies. + * Default is 12 hours past the cookie's expiration time. Zero when clearing cookies. * @param int $expiration The time when the logged-in authentication cookie expires as a UNIX timestamp. * Default is 14 days from now. Zero when clearing cookies. * @param string $token User's session token to use for this cookie. Empty string when clearing cookies.