wp/wp-includes/class-wp-recovery-mode.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   295 	 *
   295 	 *
   296 	 * @return int Rate limit in seconds.
   296 	 * @return int Rate limit in seconds.
   297 	 */
   297 	 */
   298 	protected function get_email_rate_limit() {
   298 	protected function get_email_rate_limit() {
   299 		/**
   299 		/**
   300 		 * Filter the rate limit between sending new recovery mode email links.
   300 		 * Filters the rate limit between sending new recovery mode email links.
   301 		 *
   301 		 *
   302 		 * @since 5.2.0
   302 		 * @since 5.2.0
   303 		 *
   303 		 *
   304 		 * @param int $rate_limit Time to wait in seconds. Defaults to 1 day.
   304 		 * @param int $rate_limit Time to wait in seconds. Defaults to 1 day.
   305 		 */
   305 		 */
   317 
   317 
   318 		$rate_limit = $this->get_email_rate_limit();
   318 		$rate_limit = $this->get_email_rate_limit();
   319 		$valid_for  = $rate_limit;
   319 		$valid_for  = $rate_limit;
   320 
   320 
   321 		/**
   321 		/**
   322 		 * Filter the amount of time the recovery mode email link is valid for.
   322 		 * Filters the amount of time the recovery mode email link is valid for.
   323 		 *
   323 		 *
   324 		 * The ttl must be at least as long as the email rate limit.
   324 		 * The ttl must be at least as long as the email rate limit.
   325 		 *
   325 		 *
   326 		 * @since 5.2.0
   326 		 * @since 5.2.0
   327 		 *
   327 		 *