mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Bootstrap/Load: Revert fatal error recovery mechanism from 5.1 to polish for 5.2.
Due to the high number of follow-up tickets and associated security concerns, it was decided to reschedule the fatal error recovery feature for WordPress 5.2, in order to address these issues properly. The feature will continue to be developed, with iterations being merged into trunk early in the 5.2 release cycle. Fixes #46141. See #44458, #45932, #45940, #46038, #46047, #46068. git-svn-id: https://develop.svn.wordpress.org/trunk@44717 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -17,15 +17,9 @@ define( 'WPINC', 'wp-includes' );
|
||||
|
||||
// Include files required for initialization.
|
||||
require( ABSPATH . WPINC . '/load.php' );
|
||||
require( ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php' );
|
||||
require( ABSPATH . WPINC . '/class-wp-fatal-error-handler.php' );
|
||||
require( ABSPATH . WPINC . '/error-protection.php' );
|
||||
require( ABSPATH . WPINC . '/default-constants.php' );
|
||||
require_once( ABSPATH . WPINC . '/plugin.php' );
|
||||
|
||||
// Make sure we register the shutdown handler for fatal errors as soon as possible.
|
||||
wp_register_fatal_error_handler();
|
||||
|
||||
/*
|
||||
* These can't be directly globalized in version.php. When updating,
|
||||
* we're including version.php from another installation and don't want
|
||||
@@ -530,12 +524,3 @@ if ( is_multisite() ) {
|
||||
* @since 3.0.0
|
||||
*/
|
||||
do_action( 'wp_loaded' );
|
||||
|
||||
/*
|
||||
* Store the fact that we could successfully execute the entire WordPress
|
||||
* lifecycle. This is used to skip the premature shutdown handler, as it cannot
|
||||
* be unregistered.
|
||||
*/
|
||||
if ( ! defined( 'WP_EXECUTION_SUCCEEDED' ) ) {
|
||||
define( 'WP_EXECUTION_SUCCEEDED', true );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user