mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user