From d821f8b28dfdf3cf07350c2bd71210fca21b6c2d Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 20 Nov 2017 20:34:52 +0000 Subject: [PATCH] HTTP API: Add support for a description for HTTP status code `103`. Props Dhruvin Fixes #42490 git-svn-id: https://develop.svn.wordpress.org/trunk@42207 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index b5d21285b6..0885440fcf 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -967,6 +967,9 @@ function wp( $query_vars = '' ) { * Retrieve the description for the HTTP status. * * @since 2.3.0 + * @since 3.9.0 Added status codes 418, 428, 429, 431, and 511. + * @since 4.5.0 Added status codes 308, 421, and 451. + * @since 5.0.0 Added status code 103. * * @global array $wp_header_to_desc * @@ -983,6 +986,7 @@ function get_status_header_desc( $code ) { 100 => 'Continue', 101 => 'Switching Protocols', 102 => 'Processing', + 103 => 'Early Hints', 200 => 'OK', 201 => 'Created',