WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/07/2019 12:03:39 AM (2 months ago)
Author:
azaozz
Message:

Add admin email verification screen. Shown every six months after an admin has logged in.
Also includes WPCS fixes for wp-login.php.

Props andraganescu, boemedia, lessbloat, azaozz.
See #46349.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r45747 r45757  
    816816    }
    817817
     818    if ( $wp_current_db_version < 45744 ) {
     819        upgrade_530();
     820    }       
     821
    818822    maybe_disable_link_manager();
    819823
     
    21162120
    21172121/**
     2122 * Executes changes made in WordPress 5.3.0.
     2123 *
     2124 * @ignore
     2125 * @since 5.3.0
     2126 */
     2127function upgrade_530() {
     2128    // Do `add_option()` rather than overwriting with `update_option()` as this may run
     2129    // after an admin was redirected to the email verification screen,
     2130    // and the option was updated.
     2131    add_option( 'admin_email_lifespan', 0 );
     2132}
     2133
     2134/**
    21182135 * Executes network-level upgrade routines.
    21192136 *
Note: See TracChangeset for help on using the changeset viewer.