Docs: Add @since tags for wp_die() handlers in the PHPUnit test suite.

Follow-up to [289/tests], [28797], [41966], [53634].

See #55652, #55646.

git-svn-id: https://develop.svn.wordpress.org/trunk@53635 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2022-07-02 18:27:44 +00:00
parent 3bebac5ea4
commit 242f2b0128

View File

@ -152,6 +152,9 @@ function _delete_all_posts() {
/**
* Handles the WP die handler by outputting the given values as text.
*
* @since UT (3.7.0)
* @since 6.1.0 The `$message` parameter can accept a `WP_Error` object.
*
* @param string|WP_Error $message Error message or WP_Error object.
* @param string $title Error title.
* @param array $args Arguments passed to wp_die().
@ -166,6 +169,8 @@ function _wp_die_handler( $message, $title = '', $args = array() ) {
/**
* Disables the WP die handler.
*
* @since UT (3.7.0)
*/
function _disable_wp_die() {
$GLOBALS['_wp_die_disabled'] = true;
@ -173,6 +178,8 @@ function _disable_wp_die() {
/**
* Enables the WP die handler.
*
* @since UT (3.7.0)
*/
function _enable_wp_die() {
$GLOBALS['_wp_die_disabled'] = false;
@ -181,6 +188,8 @@ function _enable_wp_die() {
/**
* Returns the die handler.
*
* @since UT (3.7.0)
*
* @return string The die handler.
*/
function _wp_die_handler_filter() {
@ -190,6 +199,8 @@ function _wp_die_handler_filter() {
/**
* Returns the die handler.
*
* @since 4.9.0
*
* @return string The die handler.
*/
function _wp_die_handler_filter_exit() {
@ -199,6 +210,9 @@ function _wp_die_handler_filter_exit() {
/**
* Dies without an exit.
*
* @since 4.0.0
* @since 6.1.0 The `$message` parameter can accept a `WP_Error` object.
*
* @param string|WP_Error $message Error message or WP_Error object.
* @param string $title Error title.
* @param array $args Arguments passed to wp_die().
@ -228,6 +242,9 @@ function _wp_die_handler_txt( $message, $title, $args ) {
/**
* Dies with an exit.
*
* @since 4.9.0
* @since 6.1.0 The `$message` parameter can accept a `WP_Error` object.
*
* @param string|WP_Error $message Error message or WP_Error object.
* @param string $title Error title.
* @param array $args Arguments passed to wp_die().