Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#41849 closed enhancement (fixed)

Pass the session token to the set_auth_cookie and set_logged_in_cookie filters

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile johnbillion
Milestone: 4.9 Priority: normal
Severity: normal Version: 4.0
Component: Login and Registration Keywords:
Focuses: Cc:

Description

The $token for the user session doesn't get passed through to the set_auth_cookie and set_logged_in_cookie filters when a user logs in (it is passed to the auth_cookie filter though, but that's not guaranteed to be linked to the action of logging in).

This is handy for debugging, logging, and session management purposes without having to extract the token from the cookie value.

Change History (1)

#1 @johnbillion
7 years ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 41365:

Login and Registration: Pass the user session token to the set_auth_cookie and set_logged_in_cookie filters.

This also adds some missing @since parameters for other uses of the token so that developers know when the token was first made available to various filters.

Fixes #41849

Note: See TracTickets for help on using tickets.