Skip to content

Commit

Permalink
Users: Change parameters order in send_auth_cookies filter.
Browse files Browse the repository at this point in the history
This changeset makes this filter more consistent with `set_auth_cookie` and `set_logged_in_cookie` hooks.

Follow-up to [55164].

Props SergeyBiryukov, audrasjb, mukesh27 , costdev.
Fixes #56971.

Built from https://develop.svn.wordpress.org/trunk@55253


git-svn-id: http://core.svn.wordpress.org/trunk@54786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
audrasjb committed Feb 7, 2023
1 parent 63e73fb commit 0c58126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions wp-includes/pluggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1070,17 +1070,17 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '', $token =
* Allows preventing auth cookies from actually being sent to the client.
*
* @since 4.7.4
* @since 6.2.0 The `$user_id`, `$expire`, `$expiration`, and `$token` parameters were added.
* @since 6.2.0 The `$expire`, `$expiration`, `$user_id`, and `$token` parameters were added.
*
* @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.
* 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 int $user_id User ID. Zero 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, $user_id, $expire, $expiration, $token ) ) {
if ( ! apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $token ) ) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.2-alpha-55252';
$wp_version = '6.2-alpha-55253';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 0c58126

Please sign in to comment.