[wp-trac] [WordPress Trac] #44458: Catch WSODs and provide a means for recovery for end users
WordPress Trac
noreply at wordpress.org
Mon Jul 23 16:34:22 UTC 2018
#44458: Catch WSODs and provide a means for recovery for end users
-------------------------------------------------+-------------------------
Reporter: schlessera | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.0
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests needs- | Focuses: multisite
testing |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [attachment:"44458.6.diff"]:
* Adjust `wp_record_extension_error()` to work with Windows paths as well
(string manipulations should use `wp_normalize_path()` to work as
expected).
* Fix PHP 5.2 warnings in `class-wp-plugins-list-table.php`:
* Before 5.3, core constants used to be in the `internal` group.
* On 5.2 there's less than 15 error constants, so an `array_slice()` of
the 15 items includes `TRUE` and `FALSE`, which then causes a warning in
`array_flip()`: "Can only flip STRING and INTEGER values". Instead of
hardcoding 15 items, the patch builds an array with all core constants
starting with `E_`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44458#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list