Make WordPress Core

Ticket #34669: 34669.2.diff

File 34669.2.diff, 732 bytes (added by desrosj, 2 years ago)
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 4ecad8e808..be52e6c147 100644
    a b function wp_die( $message = '', $title = '', $args = array() ) { 
    37103710                $callback = apply_filters( 'wp_die_handler', '_default_wp_die_handler' );
    37113711        }
    37123712
     3713        /**
     3714         * Filters the arguments passed to the callback that kills WordPress execution.
     3715         *
     3716         * @since 6.1.0
     3717         *
     3718         * @param string|array|int $args     Arguments to control behavior.
     3719         * @param callable         $callback Callback function name.
     3720         */
     3721        $args = apply_filters( 'wp_die_args', $args, $callback );
     3722
    37133723        call_user_func( $callback, $message, $title, $args );
    37143724}
    37153725