HTTP API: Add support for a description for HTTP status code 103.

Props Dhruvin

Fixes #42490

Built from https://develop.svn.wordpress.org/trunk@42207


git-svn-id: http://core.svn.wordpress.org/trunk@42036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2017-11-20 20:35:48 +00:00
parent bb5621a084
commit 6e39468def
2 changed files with 5 additions and 1 deletions

View File

@ -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',

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-42206';
$wp_version = '5.0-alpha-42207';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.