From e678d5bf285e75083b054809b0e5244701d4dab5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 30 Oct 2019 02:59:03 +0000 Subject: [PATCH] Docs: Document `$error`, `$interim_login`, and `$action` globals in `login_header()` and `login_footer()`. Props priyankabehera155, faisal03, mukesh27, SergeyBiryukov. Fixes #45777. Built from https://develop.svn.wordpress.org/trunk@46620 git-svn-id: http://core.svn.wordpress.org/trunk@46417 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-login.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 6be5ea88ee..9866a42bbb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46616'; +$wp_version = '5.4-alpha-46620'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index 8f957f860f..ee0e212e2c 100644 --- a/wp-login.php +++ b/wp-login.php @@ -27,6 +27,12 @@ if ( force_ssl_admin() && ! is_ssl() ) { * * @since 2.1.0 * + * @global string $error Login error message set by deprecated pluggable wp_login() function + * or plugins replacing it. + * @global bool|string $interim_login Whether interim login modal is being displayed. String 'success' + * upon successful login. + * @global string $action The action that brought the visitor to the login page. + * * @param string $title Optional. WordPress login Page title to display in the `` element. * Default 'Log In'. * @param string $message Optional. Message to display in header. Default empty. @@ -269,6 +275,9 @@ function login_header( $title = 'Log In', $message = '', $wp_error = null ) { * * @since 3.1.0 * + * @global bool|string $interim_login Whether interim login modal is being displayed. String 'success' + * upon successful login. + * * @param string $input_id Which input to auto-focus. */ function login_footer( $input_id = '' ) {