[wp-trac] [WordPress Trac] #46825: Disable WSOD protection when WP_DEBUG is true
WordPress Trac
noreply at wordpress.org
Tue Apr 9 11:39:26 UTC 2019
#46825: Disable WSOD protection when WP_DEBUG is true
----------------------------+---------------------
Reporter: arena | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.2
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: servehappy | Focuses:
----------------------------+---------------------
Comment (by aandrewdixon):
True, my patch didn't take account of WP_DISABLE_FATAL_ERROR_HANDLER being
defined and only worked by moving the initiation of debug mode.
The other way to do it would involve changing the handler to be a callback
so that it could be unregistered after it has been registered, but I don't
want to spend the time doing that if it is not agreed that this is
something that is wanted, as from the comments there doesn't appear to be
consensus.
My view would be, why would you want the fatal error handler to catch the
error if you have debug mode enabled? Surely the whole point of debug mode
is to see all errors and the debug output to help you fix it, not from
them to be caught and suppressed by another mechanism.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46825#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list