display_error_template example

load_default_textdomain();
            }

            $handled = false;

            if ( ! is_multisite() && wp_recovery_mode()->is_initialized() ) {
                $handled = wp_recovery_mode()->handle_error( $error );
            }

            // Display the PHP error template if headers not sent.             if ( is_admin() || ! headers_sent() ) {
                $this->display_error_template( $error$handled );
            }
        } catch ( Exception $e ) {
            // Catch exceptions and remain silent.         }
    }

    /** * Detects the error causing the crash if it should be handled. * * @since 5.2.0 * * @return array|null Error information returned by `error_get_last()`, or null * if none was recorded or the error should not be handled. */
Home | Imprint | This part of the site doesn't use cookies.