[wp-trac] [WordPress Trac] #56971: Add context to send_auth_cookies

WordPress Trac noreply at wordpress.org
Thu Nov 3 03:33:02 UTC 2022


#56971: Add context to send_auth_cookies
-------------------------+-----------------------------
 Reporter:  dd32         |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Users        |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 The `send_auth_cookies` filter was introduced in #39367 for unit testing,
 but it has other benefits in the authentication flow.

 However, this filter doesn't pass any context, making it a lot less useful
 for conditional usage.

 The attached PR will add $user_id as context to the filter, which at least
 allows for the filter to skip sending auth cookies.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56971>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list