WordPress.org

Make WordPress Core

Ticket #45989: 45989.6.diff

File 45989.6.diff, 1.0 KB (added by spacedmonkey, 19 months ago)
  • src/wp-includes/class-wp-fatal-error-handler.php

     
    2626         * @since 5.2.0
    2727         */
    2828        public function handle() {
    29                 // Bail if WordPress executed successfully.
    30                 if ( defined( 'WP_EXECUTION_SUCCEEDED' ) && WP_EXECUTION_SUCCEEDED ) {
     29                // Bail if headers already sent.
     30                if ( headers_sent() ) {
    3131                        return;
    3232                }
    3333
  • src/wp-settings.php

     
    544544 * @since 3.0.0
    545545 */
    546546do_action( 'wp_loaded' );
    547 
    548 /*
    549  * Store the fact that we could successfully execute the entire WordPress
    550  * lifecycle. This is used to skip the premature shutdown handler, as it cannot
    551  * be unregistered.
    552  */
    553 if ( ! defined( 'WP_EXECUTION_SUCCEEDED' ) ) {
    554         define( 'WP_EXECUTION_SUCCEEDED', true );
    555 }