WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/13/2019 05:39:06 PM (2 months ago)
Author:
azaozz
Message:

Admin email verification:

  • Add the admin_email_lifespan option when installing. Fixes a bug where the verification screen is shown right after installation.
  • Reset the same option when upgrading and the user doing the DB upgrade is not an admin. This will ensure the email verification is shown next time an admin logs in.
  • Use site_url() instead of network_site_url() for the form action. The latter seems needed only for password reset.

See #46349.

File:
1 edited

Legend:

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

    r45735 r45788  
    543543        // 4.9.8
    544544        'show_comments_cookies_opt_in'    => 1,
     545
     546        // 5.3.0
     547        'admin_email_lifespan'            => ( time() + 6 * MONTH_IN_SECONDS ),
    545548    );
    546549
Note: See TracChangeset for help on using the changeset viewer.