Displays the PHP error template and sends the HTTP status code, typically 500.
Description
A drop-in 'php-error.php' can be used as a custom template. This drop-in should control the HTTP status code and print the HTML markup indicating that a PHP error occurred. Note that this drop-in may potentially be executed very early in the WordPress bootstrap process, so any core functions used that are not part of wp-includes/load.php should be checked for before being called. If no such drop-in is available, this will call WP_Fatal_Error_Handler::display_default_error_template().
Parameters
$errorarray
Error information retrieved from error_get_last().
Signature, return type and hooks compared across 5 parsed releases.
5.3.0
The $handled parameter was added.from the docblock
5.2.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/class-wp-fatal-error-handler.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.