Registration/Login: Coding standards fixes for `wp-login.php`.

Props alkesh7, Presskopp, audrasjb.
Fixes #54746.
See #54728.

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


git-svn-id: http://core.svn.wordpress.org/trunk@52534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson 2022-03-17 04:57:03 +00:00
parent e24bf8c2c9
commit 5c2f80f60f
2 changed files with 6 additions and 7 deletions

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-52944';
$wp_version = '6.0-alpha-52945';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -422,10 +422,7 @@ function wp_login_viewport_meta() {
<?php
}
//
// Main.
//
// Check request and redirect.
$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : 'login';
$errors = new WP_Error();
@ -1276,8 +1273,10 @@ switch ( $action ) {
if ( is_a( $user, 'WP_User' ) && $user->exists() && $user->has_cap( 'manage_options' ) ) {
$admin_email_lifespan = (int) get_option( 'admin_email_lifespan' );
// If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected
// to the admin email confirmation screen.
/*
* If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected
* to the admin email confirmation screen.
*/
/** This filter is documented in wp-login.php */
$admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS );