Make WordPress Core


Ignore:
Timestamp:
04/29/2022 07:15:57 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Corrections and improvements to docblocks for function and hooks relating to fatal error handling.

See #54729

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-fatal-error-handler.php

    r51076 r53316  
    6767     * @since 5.2.0
    6868     *
    69      * @return array|null Error that was triggered, or null if no error received or if the error should not be handled.
     69     * @return array|null Error information returned by `error_get_last()`, or null
     70     *                    if none was recorded or the error should not be handled.
    7071     */
    7172    protected function detect_error() {
     
    9192     * @since 5.2.0
    9293     *
    93      * @param array $error Error information retrieved from error_get_last().
     94     * @param array $error Error information retrieved from `error_get_last()`.
    9495     * @return bool Whether WordPress should handle this error.
    9596     */
     
    117118         *
    118119         * @param bool  $should_handle_error Whether the error should be handled by the fatal error handler.
    119          * @param array $error               Error information retrieved from error_get_last().
     120         * @param array $error               Error information retrieved from `error_get_last()`.
    120121         */
    121122        return (bool) apply_filters( 'wp_should_handle_php_error', false, $error );
Note: See TracChangeset for help on using the changeset viewer.