Site Health: Consolidate documentation for the `admin_email_check_interval` filter.

See #48153.
Built from https://develop.svn.wordpress.org/trunk@46324


git-svn-id: http://core.svn.wordpress.org/trunk@46123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2019-09-26 15:45:58 +00:00
parent 0f99e345fa
commit 1e8ed99eca
2 changed files with 2 additions and 4 deletions

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-beta1-46323';
$wp_version = '5.3-beta1-46324';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -590,7 +590,7 @@ switch ( $action ) {
/**
* Filters the interval for redirecting the user to the admin email confirmation screen.
* If `0` (zero) is returned, the user will not be redirected.
* If `0` (zero), or any :falsey" value is returned, the user will not be redirected.
*
* @since 5.3.0
*
@ -1243,8 +1243,6 @@ switch ( $action ) {
if ( is_a( $user, 'WP_User' ) && $user->exists() && $user->has_cap( $admin_check_cap ) ) {
$admin_email_lifespan = (int) get_option( 'admin_email_lifespan' );
// 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', 6 * MONTH_IN_SECONDS );