Changeset 45014
- Timestamp:
- 03/26/2019 08:29:52 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-fatal-error-handler.php
r44973 r45014 27 27 */ 28 28 public function handle() { 29 // Bail if WordPress executed successfully.30 if ( defined( 'WP_EXECUTION_SUCCEEDED' ) && WP_EXECUTION_SUCCEEDED ) {31 return;32 }33 34 29 try { 35 30 // Bail if no error found. … … 43 38 } 44 39 45 // Display the PHP error template. 46 $this->display_error_template(); 40 // Display the PHP error template if headers not sent. 41 if ( ! headers_sent() ) { 42 $this->display_error_template(); 43 } 47 44 } catch ( Exception $e ) { 48 45 // Catch exceptions and remain silent. -
trunk/src/wp-settings.php
r44973 r45014 545 545 */ 546 546 do_action( 'wp_loaded' ); 547 548 /*549 * Store the fact that we could successfully execute the entire WordPress550 * lifecycle. This is used to skip the premature shutdown handler, as it cannot551 * be unregistered.552 */553 if ( ! defined( 'WP_EXECUTION_SUCCEEDED' ) ) {554 define( 'WP_EXECUTION_SUCCEEDED', true );555 }
Note: See TracChangeset
for help on using the changeset viewer.