Disable the fatal error handler
-
Hey,
I try to check via code whether the fatal error handler is switched on or off. But if I use true or false with the add_filter, it makes no difference with the control code below.
/** * Disable the fatal error handler. */ add_filter( 'wp_fatal_error_handler_enabled', '__return_false' ); $err = "Some plugin or theme are causing WSOD, Contact webmaster!"; $ok = "No problem !"; echo wp_is_recovery_mode() ? "$err" : "$ok";
Thank you in advance!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Disable the fatal error handler’ is closed to new replies.