From 5edba14d1a895465e4c31370f0f544c1c346e059 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 28 Feb 2016 01:46:26 +0000 Subject: [PATCH] HTTP API: Add the missing `1xx` HTTP response codes as constants of the `WP_Http` class, and add tests to ensure all available response codes are covered. Fixes #36294 Built from https://develop.svn.wordpress.org/trunk@36749 git-svn-id: http://core.svn.wordpress.org/trunk@36716 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index d8b703bf9c..838fbe8140 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -21,6 +21,10 @@ class WP_Http { // Aliases for HTTP response codes. + const HTTP_CONTINUE = 100; + const SWITCHING_PROTOCOLS = 101; + const PROCESSING = 102; + const OK = 200; const CREATED = 201; const ACCEPTED = 202; diff --git a/wp-includes/version.php b/wp-includes/version.php index c6ebaae826..8d3be1a008 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-beta1-36748'; +$wp_version = '4.5-beta1-36749'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.