Make WordPress Core


Ignore:
Timestamp:
02/07/2023 01:44:09 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Users: Pass the authentication scheme to the send_auth_cookies filter.

This brings more consistency with the set_auth_cookie and set_logged_in_cookie hooks.

Follow-up to [55164], [55253].

See #56971.

File:
1 edited

Legend:

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

    r55253 r55259  
    10711071         *
    10721072         * @since 4.7.4
    1073          * @since 6.2.0 The `$expire`, `$expiration`, `$user_id`, and `$token` parameters were added.
     1073         * @since 6.2.0 The `$expire`, `$expiration`, `$user_id`, `$scheme`, and `$token` parameters were added.
    10741074         *
    10751075         * @param bool   $send       Whether to send auth cookies to the client. Default true.
     
    10791079         *                           Default is 14 days from now. Zero when clearing cookies.
    10801080         * @param int    $user_id    User ID. Zero when clearing cookies.
     1081         * @param string $scheme     Authentication scheme. Values include 'auth' or 'secure_auth'.
    10811082         * @param string $token      User's session token to use for this cookie. Empty string when clearing cookies.
    10821083         */
    1083         if ( ! apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $token ) ) {
     1084        if ( ! apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $scheme, $token ) ) {
    10841085            return;
    10851086        }
Note: See TracChangeset for help on using the changeset viewer.