[wp-trac] [WordPress Trac] #46825: Disable WSOD protection when WP_DEBUG is true
WordPress Trac
noreply at wordpress.org
Tue May 21 02:41:13 UTC 2019
#46825: Disable WSOD protection when WP_DEBUG is true
----------------------------+-----------------------
Reporter: arena | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.2.2
Component: Bootstrap/Load | Version: 5.2
Severity: normal | Resolution:
Keywords: servehappy | Focuses:
----------------------------+-----------------------
Comment (by afragen):
Replying to [comment:33 SergeyBiryukov]:
> Replying to [comment:31 afragen]:
> > As I said in [https://core.trac.wordpress.org/ticket/46825#comment:13
above] this makes setting the constant specifically to false to debug the
WSOD process rather onerous.
>
> I might be missing something, but wouldn't this be enough?
> {{{
> define( 'WP_DEBUG', true );
> define( 'WP_DISABLE_FATAL_ERROR_HANDLER', false );
> }}}
>
> The patch only defines the constant if it hasn't been explicitly defined
earlier.
I guess my point is having the developer declare the constant as false
when debugging as they would likely already declared WP_DEBUG as true.
Seems like simply transferring the burden of defining the constant to
another person.
If I choose to have WP_DEBUG true this patch requires me to define the
WSOD bypass constant in some way, even if I was happy with it being
undefined.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46825#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list