diff --git src/wp-includes/class-wp-shutdown-handler.php src/wp-includes/class-wp-shutdown-handler.php
index c55901dd4a..8354fbd149 100644
|
|
|
class WP_Shutdown_Handler { |
| 26 | 26 | */ |
| 27 | 27 | public function handle() { |
| 28 | 28 | // Bail if WordPress executed successfully. |
| 29 | | if ( defined( 'WP_EXECUTION_SUCCEEDED' ) && WP_EXECUTION_SUCCEEDED ) { |
| | 29 | if ( defined( 'WP_DISABLE_SHUTDOWN_HANDLER' ) && WP_DISABLE_SHUTDOWN_HANDLER ) { |
| 30 | 30 | return; |
| 31 | 31 | } |
| 32 | 32 | |
diff --git src/wp-settings.php src/wp-settings.php
index 781d8e6ca1..54e60eece8 100644
|
|
|
if ( is_multisite() ) { |
| 532 | 532 | do_action( 'wp_loaded' ); |
| 533 | 533 | |
| 534 | 534 | /* |
| 535 | | * Store the fact that we could successfully execute the entire WordPress |
| 536 | | * lifecycle. This is used to skip the premature shutdown handler, as it cannot |
| 537 | | * be unregistered. |
| | 535 | * Once we could successfully execute the entire WordPress lifecycle, we use |
| | 536 | * this constant to skip the premature shutdown handler, as it cannot be |
| | 537 | * unregistered. |
| 538 | 538 | */ |
| 539 | | if ( ! defined( 'WP_EXECUTION_SUCCEEDED' ) ) { |
| 540 | | define( 'WP_EXECUTION_SUCCEEDED', true ); |
| | 539 | if ( ! defined( 'WP_DISABLE_SHUTDOWN_HANDLER' ) ) { |
| | 540 | define( 'WP_DISABLE_SHUTDOWN_HANDLER', true ); |
| 541 | 541 | } |