From 73e75195eb5c0a88e624a78bf594bb91597a3d95 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 2 Feb 2020 03:25:57 +0000 Subject: [PATCH] Docs: Add more specific description for `WP_Http::processResponse()` return value. Props marekdedic, takeshifurusato. Fixes #48351. git-svn-id: https://develop.svn.wordpress.org/trunk@47161 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-http.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index 2064950462..4fe9d14de0 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -651,7 +651,12 @@ class WP_Http { * @since 2.7.0 * * @param string $strResponse The full response string. - * @return array Array with 'headers' and 'body' keys. + * @return array { + * Array with response headers and body. + * + * @type string $headers HTTP response headers. + * @type string $body HTTP response body. + * } */ public static function processResponse( $strResponse ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid $res = explode( "\r\n\r\n", $strResponse, 2 );