mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Login and Registration: Standardize on 6 * MONTH_IN_SECONDS
over 180 * DAY_IN_SECONDS
for admin_email_check_interval
filter.
[45788] changed the first instance, but not the second. Props tmatsuur. Fixes #48144. Built from https://develop.svn.wordpress.org/trunk@46319 git-svn-id: http://core.svn.wordpress.org/trunk@46118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8ef4150dc6
commit
0a5cd17f98
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-beta1-46318';
|
||||
$wp_version = '5.3-beta1-46319';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
@ -1237,7 +1237,7 @@ switch ( $action ) {
|
||||
// If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected
|
||||
// to the admin email confirmation screen.
|
||||
/** This filter is documented in wp-login.php */
|
||||
$admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 180 * DAY_IN_SECONDS );
|
||||
$admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS );
|
||||
|
||||
if ( $admin_email_check_interval > 0 && time() > $admin_email_lifespan ) {
|
||||
$redirect_to = add_query_arg( 'action', 'confirm_admin_email', wp_login_url( $redirect_to ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user