[wp-trac] [WordPress Trac] #56848: Avoid initializing WP_Recovery_Mode when fatal error handler is disabled
WordPress Trac
noreply at wordpress.org
Tue Jan 24 06:38:15 UTC 2023
#56848: Avoid initializing WP_Recovery_Mode when fatal error handler is disabled
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.2
Component: Site Health | Version:
Severity: normal | Resolution:
Keywords: needs-unit-tests has-patch | Focuses:
reporter-feedback |
-------------------------------------------------+-------------------------
Changes (by costdev):
* keywords: needs-unit-tests has-patch => needs-unit-tests has-patch
reporter-feedback
Comment:
@flixos90 I've submitted [https://github.com/WordPress/wordpress-
develop/pull/3898 PR 3898] which adds
`wp_is_fatal_error_handler_enabled()` to the conditions before
initializing recovery mode.
Regarding `needs-unit-tests`, as this change is in `wp-settings.php`,
which is loaded in the test suite's bootstrap, I'm not sure whether
PHPUnit tests are possible for this. What do you think?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56848#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list