WPDev.one
Core Class

WP_Fatal_Error_Handler

class WP_Fatal_Error_Handler // Constructor: function Object() { [native code] }

Core class used as the default shutdown handler for fatal errors.

Methods 5 methods

Method / Return Description
handle()
void

Runs the shutdown handler.

detect_error()
(array

Detects the error causing the crash if it should be handled.

should_handle_error()
bool

Determines whether we are dealing with an error that WordPress should handle

Parameters: $error: mixed
display_error_template()
void

Displays the PHP error template and sends the HTTP status code, typically 500.

Parameters: $error: mixed, $handled: mixed
display_default_error_template()
void

Displays the default PHP error template.

Parameters: $error: mixed, $handled: mixed

Class Information

Since Version
5.2.0
Source File
wp-includes/class-wp-fatal-error-handler.php
Advertisement