[wp-trac] [WordPress Trac] #48334: Allow the remind interval for the admin email verification to be filtered

WordPress Trac noreply at wordpress.org
Tue Dec 3 10:18:18 UTC 2019


#48334: Allow the remind interval for the admin email verification to be filtered
------------------------------+---------------------------------
 Reporter:  desrosj           |       Owner:  whyisjake
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  5.3.1
Component:  Site Health       |     Version:  5.3
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  ui, administration
------------------------------+---------------------------------

Comment (by birgire):

 In the filter's description of the {{{admin_email_check_interval}}} we
 have the 0 case (falsey) explained:

 {{{
    /**
      * Filters the interval for redirecting the user to the admin email
 confirmation screen.
      * If `0` (zero) is returned, the user will not be redirected.
      *
      * @since 5.3.0
      *
      * @param int Interval time (in seconds).
      */

 }}}

 I suggest we also explain the zero (falsey) case for the
 {{{admin_email_remind_interval}}} filter.

 Eg. change from:

 {{{
 /**
  * Filters the interval for dismissing the admin email confirmation
 screen.
  *
  * @since 5.3.0
  *
  * @param int Interval time (in seconds). Default is 3 days.
  */
  $remind_interval = (int) apply_filters( 'admin_email_remind_interval', 3
 * DAY_IN_SECONDS );

 }}}

 to

 {{{
 /**
  * Filters the interval for dismissing the admin email confirmation
 screen.
  * If `0` (zero) is returned, the "Remind me later" link will not be
 displayed.
  *
  * @since 5.3.1
  *
  * @param int Interval time (in seconds). Default is 3 days.
  */
  $remind_interval = (int) apply_filters( 'admin_email_remind_interval', 3
 * DAY_IN_SECONDS );

 }}}

 or something similar about the reminder functionality being disabled.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48334#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list