From 4c535ee6d5edc1d6f02c5f79cf5139b259cc9032 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 7 Feb 2023 13:51:39 +0000 Subject: [PATCH] Users: Pass correct number of arguments to `send_auth_cookies` filter in `wp_clear_auth_cookie()`. Follow-up to [55164], [55253], [55259]. Props mukesh27. See #56971. git-svn-id: https://develop.svn.wordpress.org/trunk@55260 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/pluggable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index 53a8f23242..dff61669ed 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -1079,6 +1079,7 @@ if ( ! function_exists( 'wp_set_auth_cookie' ) ) : * Default is 14 days from now. Zero when clearing cookies. * @param int $user_id User ID. Zero when clearing cookies. * @param string $scheme Authentication scheme. Values include 'auth' or 'secure_auth'. + * Empty string when clearing cookies. * @param string $token User's session token to use for this cookie. Empty string when clearing cookies. */ if ( ! apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $scheme, $token ) ) { @@ -1109,7 +1110,7 @@ if ( ! function_exists( 'wp_clear_auth_cookie' ) ) : do_action( 'clear_auth_cookie' ); /** This filter is documented in wp-includes/pluggable.php */ - if ( ! apply_filters( 'send_auth_cookies', true, 0, 0, 0, '' ) ) { + if ( ! apply_filters( 'send_auth_cookies', true, 0, 0, 0, '', '' ) ) { return; }