Make WordPress Core

Opened 5 years ago

Closed 2 years ago

Last modified 2 years ago

#48525 closed enhancement (worksforme)

Add a possibility to disable sending the recovery e-mail

Reported by: apermo's profile apermo Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.2
Component: Site Health Keywords:
Focuses: Cc:

Description

As of now, it's only possible to turn off the recovery mode completely.

The recovery mode emails can be quite annoying while developing locally cause you'll most likely throw errors from time to time.

A constant would already do the trick.
(written without actually checking if a return value is required, and if that constant name is already in use)

if ( defined( 'WP_DISABLE_FATAL_ERROR_EMAIL' ) && WP_DISABLE_FATAL_ERROR_EMAIL ) {
   return;
}

Change History (6)

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Site Health

#2 @Clorith
5 years ago

  • Version set to 5.2

I'm curious, why isn't disabling the fatal error recovery enough in these scenarios?

The email being sent is what it does in the first place, so turning it off is essentially the same as disabling just the emails.

#3 @apermo
4 years ago

Hi @Clorith Sorry for the late response. I havent seen an option to disable the fatal error recovery, can you specify how to do so?

And yes, that would be enough and would close this ticket.

#4 @Clorith
4 years ago

The use of it is handled by wp_is_fatal_error_handler_enabled, which is both filterable, and also looks up a constant of WP_DISABLE_FATAL_ERROR_HANDLER that can be defined anywhere in your setup.

See also the dev note on fatal error recovery mode in 5.2

#5 @apermo
2 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

#6 @sabernhardt
2 years ago

  • Milestone Awaiting Review deleted

Thanks for the follow-up!

Note: See TracTickets for help on using tickets.