Make WordPress Core


Ignore:
Timestamp:
05/14/2013 02:00:19 PM (13 years ago)
Author:
ryan
Message:

Add default args list to wp_remote_request|get|post|head docblocks

Props DrewAPicture
fixes #23838

File:
1 edited

Legend:

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

    r21988 r24250  
    5050 * functions to abstract out the above convoluted setup.
    5151 *
     52 * List of default arguments:
     53 * 'method'      => 'GET'
     54 *  - Default 'GET'  for wp_remote_get()
     55 *  - Default 'POST' for wp_remote_post()
     56 *  - Default 'HEAD' for wp_remote_head()
     57 * 'timeout'     => 5
     58 * 'redirection' => 5
     59 * 'httpversion' => '1.0'
     60 * 'user-agent'  => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
     61 * 'blocking'    => true
     62 * 'headers'     => array()
     63 * 'cookies'     => array()
     64 * 'body'        => null
     65 * 'compress'    => false,
     66 * 'decompress'  => true,
     67 * 'sslverify'   => true,
     68 * 'stream'      => false,
     69 * 'filename'    => null
     70 *
    5271 * @since 2.7.0
    5372 *
     
    6483 * Retrieve the raw response from the HTTP request using the GET method.
    6584 *
    66  * @see wp_remote_request() For more information on the response array format.
     85 * @see wp_remote_request() For more information on the response array format and default arguments.
    6786 *
    6887 * @since 2.7.0
     
    8099 * Retrieve the raw response from the HTTP request using the POST method.
    81100 *
    82  * @see wp_remote_request() For more information on the response array format.
     101 * @see wp_remote_request() For more information on the response array format and default arguments.
    83102 *
    84103 * @since 2.7.0
     
    96115 * Retrieve the raw response from the HTTP request using the HEAD method.
    97116 *
    98  * @see wp_remote_request() For more information on the response array format.
     117 * @see wp_remote_request() For more information on the response array format and default arguments.
    99118 *
    100119 * @since 2.7.0
Note: See TracChangeset for help on using the changeset viewer.