Docs: Add missing docs for the `auth_cookie_bad_session_token` action.

See #48303

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


git-svn-id: http://core.svn.wordpress.org/trunk@46395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2019-10-26 23:46:00 +00:00
parent 9e2b6902b3
commit ac6bf7666c
2 changed files with 8 additions and 1 deletions

View File

@ -676,6 +676,13 @@ if ( ! function_exists( 'wp_validate_auth_cookie' ) ) :
$manager = WP_Session_Tokens::get_instance( $user->ID );
if ( ! $manager->verify( $token ) ) {
/**
* Fires if a bad session token is encountered.
*
* @since 4.0.0
*
* @param string[] $cookie_elements An array of data for the authentication cookie.
*/
do_action( 'auth_cookie_bad_session_token', $cookie_elements );
return false;
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-alpha-46597';
$wp_version = '5.4-alpha-46598';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.