WordPress.org

Make WordPress Core

Opened 16 months ago

Last modified 12 days ago

#48525 new enhancement

Add a possibility to disable sending the recovery e-mail

Reported by: apermo Owned by:
Milestone: Awaiting Review 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 (4)

#1 @SergeyBiryukov
16 months ago

  • Component changed from General to Site Health

#2 @Clorith
16 months 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
3 weeks 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
12 days 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

Note: See TracTickets for help on using tickets.