From 71b1269695467277f03e883b02ac339d369bda73 Mon Sep 17 00:00:00 2001 From: azaozz Date: Mon, 8 Sep 2008 01:23:43 +0000 Subject: [PATCH] phpDoc corrections for http.php, props jacobsantos fixes #7550 git-svn-id: http://svn.automattic.com/wordpress/trunk@8842 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/http.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 0b356d141..d2ef5c44b 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -1024,18 +1024,14 @@ function &_wp_http_get_object() { * The array structure is a little complex. * * - * $res = array( 'headers' => - * 'response' => array('code', 'message'), - * 'headers' => array() - * ); + * $res = array( 'headers' => array(), 'response' => array('code', 'message') ); * * - * All of the headers in $res['headers']['headers'] are with the name as the key - * and the value as the value. So to get the User-Agent, you would do the - * following. + * All of the headers in $res['headers'] are with the name as the key and the + * value as the value. So to get the User-Agent, you would do the following. * * - * $user_agent = $res['headers']['headers']['user-agent']; + * $user_agent = $res['headers']['user-agent']; * * * The body is the raw response content and can be retrieved from $res['body']. @@ -1043,7 +1039,7 @@ function &_wp_http_get_object() { * This function is called first to make the request and there are other API * functions to abstract out the above convoluted setup. * - * @since 2.7 + * @since 2.7.0 * * @param string $url Site URL to retrieve. * @param array $args Optional. Override the defaults.