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
This commit is contained in:
parent
ab714bd549
commit
d821f8b28d
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user