From 0a5cd17f983571fb098162624c3fbabdcb6b5c1d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 26 Sep 2019 02:29:58 +0000 Subject: [PATCH] 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 --- wp-includes/version.php | 2 +- wp-login.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index da961b60bc..097b0a8398 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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. diff --git a/wp-login.php b/wp-login.php index 899005a1a0..d51e556152 100644 --- a/wp-login.php +++ b/wp-login.php @@ -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 ) );