WordPress.org

Make WordPress Core

Changeset 10359


Ignore:
Timestamp:
01/14/2009 09:40:41 PM (9 years ago)
Author:
westi
Message:

update phpdoc to hilight return of WP_Error objects on failures. See #8620.

File:
1 edited

Legend:

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

    r10320 r10359  
    11421142 * @param string $url Site URL to retrieve.
    11431143 * @param array $args Optional. Override the defaults.
    1144  * @return string The body of the response
     1144 * @return WP_Error|string The body of the response or WP_Error on failure.
    11451145 */
    11461146function wp_remote_request($url, $args = array()) {
     
    11581158 * @param string $url Site URL to retrieve.
    11591159 * @param array $args Optional. Override the defaults.
    1160  * @return string The body of the response
     1160 * @return WP_Error|string The body of the response or WP_Error on failure.
    11611161 */
    11621162function wp_remote_get($url, $args = array()) {
     
    11751175 * @param string $url Site URL to retrieve.
    11761176 * @param array $args Optional. Override the defaults.
    1177  * @return string The body of the response
     1177 * @return WP_Error|string The body of the response or WP_Error on failure.
    11781178 */
    11791179function wp_remote_post($url, $args = array()) {
     
    11911191 * @param string $url Site URL to retrieve.
    11921192 * @param array $args Optional. Override the defaults.
    1193  * @return string The body of the response
     1193 * @return WP_Error|string The body of the response or WP_Error on failure.
    11941194 */
    11951195function wp_remote_head($url, $args = array()) {
Note: See TracChangeset for help on using the changeset viewer.