From ac6bf7666ca3d237fe7300e2d81b7ba5e2953fc5 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 26 Oct 2019 23:46:00 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 7 +++++++ wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 76babe3f23..47bdafd395 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 22211aa068..fe8d6a88ec 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.