WordPress/wp-admin
Felix Arntz 7daa39eb1d Bootstrap/Load: Change shutdown handler naming to final fatal error handler and allow disabling the handler entirely via a constant.
The `WP_Shutdown_Handler` name plus related function names were premature when originally committed, as there can be multiple shutdown handlers in PHP, and WordPress makes use of that feature. This changeset modifies the name to a more appropriate `WP_Fatal_Error_Handler`, and related to that changes the following names:

* The drop-in to override the handler is now called `fatal-error-handler.php`.
* The internal function `wp_register_premature_shutdown_handler` is now called `wp_register_fatal_error_handler()`.

In addition to these naming changes, a new constant `WP_DISABLE_FATAL_ERROR_HANDLER` is introduced that can be set in `wp-config.php` to entirely disable the fatal error handler. That constant's value is and should be accessed indirectly via a new `wp_is_fatal_error_handler_enabled()` function and is filterable via a new `wp_fatal_error_handler_enabled` hook. Note that disabling the fatal error handler will skip the new functionality entirely, including the potentially used `fatal-error-handler.php` drop-in.

The new set of constant, filter and function provide for an easier-to-use mechanism to disable the fatal error handler altogether, rather than requiring developers to implement a drop-in for purely that purpose.

Props afragen, flixos90, joyously, knutsp, markjaquith, ocean90, schlessera, spacedmonkey.
Fixes #46047. See #44458.

Built from https://develop.svn.wordpress.org/trunk@44674


git-svn-id: http://core.svn.wordpress.org/trunk@44505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-01-21 20:15:50 +00:00
..
css Plugin Installer: Ensure CSS for the 3-column view isn't applied to the 4-column view. 2019-01-18 04:03:52 +00:00
images Build: Update images following [43684]. 2018-12-19 03:36:27 +00:00
includes Bootstrap/Load: Change shutdown handler naming to final fatal error handler and allow disabling the handler entirely via a constant. 2019-01-21 20:15:50 +00:00
js TinyMCE: treat HTML comments same as tags when keeping cursor position. Fixes breaking the More and Nextpage tags when switching from Text to Visual. 2019-01-18 16:33:51 +00:00
maint Accessibility: Remove negative tabindex from the login, install, and setup pages header. 2019-01-10 17:21:52 +00:00
network Coding Standards: Upgrade WPCS to 1.2.1. 2019-01-12 06:41:52 +00:00
user Code is Poetry. 2017-11-30 23:11:00 +00:00
about.php Help/About: WordPress 5.0 About Page. 2018-12-17 16:36:59 +00:00
admin-ajax.php Privacy: add means to erase personal data by username or email address. First run. 2018-04-18 22:30:22 +00:00
admin-footer.php Code is Poetry. 2017-11-30 23:11:00 +00:00
admin-functions.php Code is Poetry. 2017-11-30 23:11:00 +00:00
admin-header.php Accessibility: Improve the way Internet Explorer 11 and JAWS announce fieldset legends. 2019-01-17 11:55:51 +00:00
admin-post.php Admin: Use is_user_logged_in() instead of wp_validate_auth_cookie() in admin-post.php. 2019-01-16 05:41:50 +00:00
admin.php Coding Standards: Move an assignment out of a condition in wp-admin/admin.php. 2019-01-15 05:48:50 +00:00
async-upload.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:42:49 +00:00
comment.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
credits.php Coding Standards: Fix the minor WordPress.WP.I18n violations. 2019-01-11 06:04:49 +00:00
custom-background.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:42:49 +00:00
custom-header.php Coding Standards: Upgrade WPCS to 1.2.1. 2019-01-12 06:41:52 +00:00
customize.php General: Further improve error messages following [42648]. 2018-02-19 02:13:32 +00:00
edit-comments.php I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders. 2018-03-11 16:44:34 +00:00
edit-form-advanced.php Block Editor: Fix meta boxes not showing. 2018-12-16 01:19:54 +00:00
edit-form-blocks.php I18N: Update translator comment for the notice displayed when viewing the block editor with JavaScript disabled. 2019-01-21 13:54:54 +00:00
edit-form-comment.php Comments: Improve the Author box in the Edit Comment screen. 2019-01-08 06:19:50 +00:00
edit-link-form.php Block Editor: Fix meta boxes not showing. 2018-12-16 01:19:54 +00:00
edit-tag-form.php Terms: Show error colours when a term fails to update. 2019-01-21 04:50:50 +00:00
edit-tags.php Build/Test Tools: Fix coding standards issues after [44515] and [44514]. 2019-01-09 12:37:49 +00:00
edit.php Block Editor: Fix the WordPress packages and vendor script registration. 2018-12-17 19:34:52 +00:00
export.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
freedoms.php Help/About: WordPress 5.0 About Page. 2018-12-17 16:36:59 +00:00
import.php Importers: Use correct l10n variable in wp.updates.installImporterError and filesystem credentials dialog. 2019-01-07 13:49:49 +00:00
index.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
install-helper.php Code is Poetry. 2017-11-30 23:11:00 +00:00
install.php Accessibility: Remove negative tabindex from the login, install, and setup pages header. 2019-01-10 17:21:52 +00:00
link-add.php Code is Poetry. 2017-11-30 23:11:00 +00:00
link-manager.php Code is Poetry. 2017-11-30 23:11:00 +00:00
link-parse-opml.php Code is Poetry. 2017-11-30 23:11:00 +00:00
link.php Code is Poetry. 2017-11-30 23:11:00 +00:00
load-scripts.php Script Loader: Ensure default packages are registered when loaded via load-scripts.php. 2018-12-17 03:15:20 +00:00
load-styles.php Script loader: remove (PHP based) compression from load-styles.php and load-scripts.php. WIth the amount of scripts and stylesheets grown a lot over the years, it has become pretty slow and consumes a lot of server resources. Also, most servers are set to compress PHP output anyway. 2018-08-20 13:51:24 +00:00
media-new.php Code is Poetry. 2017-11-30 23:11:00 +00:00
media-upload.php General: Further improve error messages following [42648]. 2018-02-19 02:13:32 +00:00
media.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
menu-header.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:42:49 +00:00
menu.php Privacy: Replace intrusive policy update notice with menu bubbles. 2018-05-10 19:52:21 +00:00
moderation.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-admin.php
ms-delete-site.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
ms-edit.php
ms-options.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-sites.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-themes.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-upgrade-network.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-users.php Code is Poetry. 2017-11-30 23:11:00 +00:00
my-sites.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
nav-menus.php Coding Standards: Upgrade WPCS to 1.2.1. 2019-01-12 06:41:52 +00:00
network.php Code is Poetry. 2017-11-30 23:11:00 +00:00
options-discussion.php Privacy: Revert [43525]. 2018-07-24 17:06:24 +00:00
options-general.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
options-head.php Code is Poetry. 2017-11-30 23:11:00 +00:00
options-media.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
options-permalink.php Coding Standards: Upgrade WPCS to 1.2.1. 2019-01-12 06:41:52 +00:00
options-reading.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
options-writing.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
options.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
plugin-editor.php Plugin Editor: Disable the documentation look up button when no function is selected. 2019-01-16 06:01:50 +00:00
plugin-install.php Code is Poetry. 2017-11-30 23:11:00 +00:00
plugins.php Bootstrap/Load: Introduce fatal error recovery mechanism allowing users to still log in to their admin dashboard. 2019-01-09 20:05:49 +00:00
post-new.php Editor: Merge some minor bug fixes. 2018-12-14 05:12:52 +00:00
post.php Coding Standards: Document intentional case block fall-throughs. 2019-01-11 06:26:50 +00:00
press-this.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
privacy.php Privacy: Tweak the wording of the success notice when updating the privacy policy page setting. 2019-01-09 04:19:49 +00:00
profile.php Code is Poetry. 2017-11-30 23:11:00 +00:00
revision.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
setup-config.php Accessibility: Remove negative tabindex from the login, install, and setup pages header. 2019-01-10 17:21:52 +00:00
term.php General: Further improve error messages following [42648]. 2018-02-19 02:13:32 +00:00
theme-editor.php Plugin Editor: Disable the documentation look up button when no function is selected. 2019-01-16 06:01:50 +00:00
theme-install.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
themes.php Bootstrap/Load: Introduce fatal error recovery mechanism allowing users to still log in to their admin dashboard. 2019-01-09 20:05:49 +00:00
tools.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
update-core.php Updates: Tweak the "before updating, please back up..." message. 2019-01-15 05:20:50 +00:00
update.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
upgrade-functions.php Code is Poetry. 2017-11-30 23:11:00 +00:00
upgrade.php Accessibility: Remove negative tabindex from the login, install, and setup pages header. 2019-01-10 17:21:52 +00:00
upload.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
user-edit.php Coding Standards: Upgrade WPCS to 1.2.1. 2019-01-12 06:41:52 +00:00
user-new.php Docs: Remove duplicate docblocks for the pre_user_login and link_category filters. 2019-01-16 05:29:49 +00:00
users.php Coding Standards: Upgrade WPCS to 1.2.1. 2019-01-12 06:41:52 +00:00
widgets.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00