HTTP API: Add a unit test for `get_status_header_desc()`.
Props pbearne. Fixes #46631. Built from https://develop.svn.wordpress.org/trunk@46107 git-svn-id: http://core.svn.wordpress.org/trunk@45919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
42079f34a9
commit
f9b87e88ba
|
@ -1250,7 +1250,7 @@ function wp( $query_vars = '' ) {
|
||||||
* @global array $wp_header_to_desc
|
* @global array $wp_header_to_desc
|
||||||
*
|
*
|
||||||
* @param int $code HTTP status code.
|
* @param int $code HTTP status code.
|
||||||
* @return string Empty string if not found, or description if found.
|
* @return string Status description if found, an empty string otherwise.
|
||||||
*/
|
*/
|
||||||
function get_status_header_desc( $code ) {
|
function get_status_header_desc( $code ) {
|
||||||
global $wp_header_to_desc;
|
global $wp_header_to_desc;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-46106';
|
$wp_version = '5.3-alpha-46107';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue