#48525 closed enhancement (worksforme)
Add a possibility to disable sending the recovery e-mail
Reported by: | 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)
#3
@
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
@
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
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.