Make WordPress Core

Ticket #54746: 54746.diff

File 54746.diff, 1.0 KB (added by peterwilsoncc, 2 years ago)
  • src/wp-login.php

    diff --git a/src/wp-login.php b/src/wp-login.php
    index 5975a3d58f..c0abcb077a 100644
    a b function wp_login_viewport_meta() { 
    422422        <?php
    423423}
    424424
    425 //
    426 // Main.
    427 //
    428 
     425// Check request and redirect.
    429426$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : 'login';
    430427$errors = new WP_Error();
    431428
    switch ( $action ) { 
    12761273                        if ( is_a( $user, 'WP_User' ) && $user->exists() && $user->has_cap( 'manage_options' ) ) {
    12771274                                $admin_email_lifespan = (int) get_option( 'admin_email_lifespan' );
    12781275
    1279                                 // If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected
    1280                                 // to the admin email confirmation screen.
     1276                                /*
     1277                                 * If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected
     1278                                 * to the admin email confirmation screen.
     1279                                 */
    12811280                                /** This filter is documented in wp-login.php */
    12821281                                $admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS );
    12831282