From 7fe9b8dbe0e5b9fda9b38e357c763bc86a535259 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 8 Sep 2008 01:23:43 +0000 Subject: [PATCH] phpDoc corrections for http.php, props jacobsantos fixes #7550 git-svn-id: https://develop.svn.wordpress.org/trunk@8842 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 0b356d1413..d2ef5c44b6 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.