mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 05:49:49 +01:00
Registration/Login: Coding standards fixes for wp-login.php
.
Props alkesh7, Presskopp, audrasjb. Fixes #54746. See #54728. git-svn-id: https://develop.svn.wordpress.org/trunk@52945 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
92827a9508
commit
624fcbfdd3
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user