From f948218d0f22a3eeb5ea6ba0737a633c7b53ecc6 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 24 Oct 2016 13:12:52 +0000 Subject: [PATCH] General: Correct the docs for the default HTTP status code used by `wp_die()`. See #37770 git-svn-id: https://develop.svn.wordpress.org/trunk@38884 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index fb732e6590..ea0b343752 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2574,7 +2574,7 @@ function wp_nonce_ays( $action ) { * Optional. Arguments to control behavior. If `$args` is an integer, then it is treated * as the response code. Default empty array. * - * @type int $response The HTTP response code. Default 500. + * @type int $response The HTTP response code. Default 200 for Ajax requests, 500 otherwise. * @type bool $back_link Whether to include a link to go back. Default false. * @type string $text_direction The text direction. This is only useful internally, when WordPress * is still loading and the site's locale is not set up yet. Accepts 'rtl'.