Changeset 45014 for trunk/src/wp-includes/class-wp-fatal-error-handler.php
- Timestamp:
- 03/26/2019 08:29:52 PM (22 months ago)
- File:
-
- 1 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.
Note: See TracChangeset
for help on using the changeset viewer.