From 3afb2efae47e9abf67515e92f58864db5f037225 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 21 Nov 2014 17:07:42 +0000 Subject: [PATCH] Update the inline docs for `wp_die()` to reflect parameter changes made in r30355 See #10551 git-svn-id: https://develop.svn.wordpress.org/trunk@30507 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index f69db20f54..7b41842027 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2338,12 +2338,15 @@ function wp_nonce_ays( $action ) { * the `$title` parameter (the default title would apply) or the `$args` parameter. * * @since 2.0.4 + * @since 4.1.0 The `$title` and `$args` parameters were changed to optionally accept + * an integer to be used as the response code. * * @param string|WP_Error $message Optional. Error message. If this is a {@see WP_Error} object, * the error's messages are used. Default empty. * @param string|int $title Optional. Error title. If `$message` is a `WP_Error` object, * error data with the key 'title' may be used to specify the title. - * Default empty. + * If `$title` is an integer, then it is treated as the response + * code. Default empty. * @param string|array|int $args { * Optional. Arguments to control behavior. If `$args` is an integer, then it is treated * as the response code. Default empty array.