diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 3cfdee4a93..232ef69c3b 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -524,6 +524,9 @@ class WP_Http { $cookies[] = new WP_Http_Cookie( $value, $url ); } + // Cast the Response Code to an int + $response['code'] = intval( $response['code'] ); + return array('response' => $response, 'headers' => $newheaders, 'cookies' => $cookies); }