Make WordPress Core

Changeset 8842


Ignore:
Timestamp:
09/08/2008 01:23:43 AM (16 years ago)
Author:
azaozz
Message:

phpDoc corrections for http.php, props jacobsantos fixes #7550

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/http.php

    r8691 r8842  
    10251025 *
    10261026 * <code>
    1027  * $res = array( 'headers' =>
    1028  *      'response' => array('code', 'message'),
    1029  *      'headers' => array()
    1030  * );
     1027 * $res = array( 'headers' => array(), 'response' => array('code', 'message') );
    10311028 * </code>
    10321029 *
    1033  * All of the headers in $res['headers']['headers'] are with the name as the key
    1034  * and the value as the value. So to get the User-Agent, you would do the
    1035  * following.
     1030 * All of the headers in $res['headers'] are with the name as the key and the
     1031 * value as the value. So to get the User-Agent, you would do the following.
    10361032 *
    10371033 * <code>
    1038  * $user_agent = $res['headers']['headers']['user-agent'];
     1034 * $user_agent = $res['headers']['user-agent'];
    10391035 * </code>
    10401036 *
     
    10441040 * functions to abstract out the above convoluted setup.
    10451041 *
    1046  * @since 2.7
     1042 * @since 2.7.0
    10471043 *
    10481044 * @param string $url Site URL to retrieve.
Note: See TracChangeset for help on using the changeset viewer.