mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 01:24:27 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@45788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -542,6 +542,9 @@ function populate_options( array $options = array() ) {
|
||||
|
||||
// 4.9.8
|
||||
'show_comments_cookies_opt_in' => 1,
|
||||
|
||||
// 5.3.0
|
||||
'admin_email_lifespan' => ( time() + 6 * MONTH_IN_SECONDS ),
|
||||
);
|
||||
|
||||
// 3.3
|
||||
|
||||
Reference in New Issue
Block a user