Make WordPress Core


Ignore:
Timestamp:
04/25/2019 12:46:39 AM (8 years ago)
Author:
pento
Message:

Bootstrap/Load: Tweak the recovery mode email text and behaviour.

  • Change the recovery mode link expiry to 1 day.
  • Improve the email text.
  • Add a new recovery_email_support_info filter, for hosts to be able to customise their support contact information.

Props pento, chanthaboune, michelleweber, matt.
Fixes #46898.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-recovery-mode.php

    r45238 r45268  
    300300                 * @since 5.2.0
    301301                 *
    302                  * @param int $rate_limit Time to wait in seconds. Defaults to 4 hours.
     302                 * @param int $rate_limit Time to wait in seconds. Defaults to 1 day.
    303303                 */
    304                 return apply_filters( 'recovery_mode_email_rate_limit', 4 * HOUR_IN_SECONDS );
     304                return apply_filters( 'recovery_mode_email_rate_limit', DAY_IN_SECONDS );
    305305        }
    306306
Note: See TracChangeset for help on using the changeset viewer.