Make WordPress Core


Ignore:
Timestamp:
02/07/2023 12:28:32 PM (2 years ago)
Author:
audrasjb
Message:

Users: Change parameters order in send_auth_cookies filter.

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r55239 r55253  
    10711071         *
    10721072         * @since 4.7.4
    1073          * @since 6.2.0 The `$user_id`, `$expire`, `$expiration`, and `$token` parameters were added.
     1073         * @since 6.2.0 The `$expire`, `$expiration`, `$user_id`, and `$token` parameters were added.
    10741074         *
    10751075         * @param bool   $send       Whether to send auth cookies to the client. Default true.
    1076          * @param int    $user_id    User ID. Zero when clearing cookies.
    10771076         * @param int    $expire     The time the login grace period expires as a UNIX timestamp.
    10781077         *                           Default is 12 hours past the cookie's expiration time. Zero when clearing cookies.
    10791078         * @param int    $expiration The time when the logged-in authentication cookie expires as a UNIX timestamp.
    10801079         *                           Default is 14 days from now. Zero when clearing cookies.
     1080         * @param int    $user_id    User ID. Zero when clearing cookies.
    10811081         * @param string $token      User's session token to use for this cookie. Empty string when clearing cookies.
    10821082         */
    1083         if ( ! apply_filters( 'send_auth_cookies', true, $user_id, $expire, $expiration, $token ) ) {
     1083        if ( ! apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $token ) ) {
    10841084            return;
    10851085        }
Note: See TracChangeset for help on using the changeset viewer.