WordPress.org

Make WordPress Core

Ticket #48745: 48745.diff

File 48745.diff, 685 bytes (added by lipathor, 18 months ago)

Introducing WP_DISABLE_ADMIN_EMAIL_VERIFY_SCREEN

  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index 0b552ef326..d983a8a72e 100644
    switch ( $action ) { 
    12671267                                /** This filter is documented in wp-login.php */
    12681268                                $admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS );
    12691269
    1270                                 if ( $admin_email_check_interval > 0 && time() > $admin_email_lifespan ) {
     1270                                if ( $admin_email_check_interval > 0 && time() > $admin_email_lifespan && ! ( defined( 'WP_DISABLE_ADMIN_EMAIL_VERIFY_SCREEN' ) && WP_DISABLE_ADMIN_EMAIL_VERIFY_SCREEN ) ) {
    12711271                                        $redirect_to = add_query_arg(
    12721272                                                array(
    12731273                                                        'action'  => 'confirm_admin_email',