From b646d66c7e58fe2d0cc4fef6e7736972fae55f3d Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 14 Jan 2009 21:40:41 +0000 Subject: [PATCH] update phpdoc to hilight return of WP_Error objects on failures. See #8620. git-svn-id: https://develop.svn.wordpress.org/trunk@10359 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/http.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index f09ce0edea..0e66ac387b 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -1141,7 +1141,7 @@ function &_wp_http_get_object() { * * @param string $url Site URL to retrieve. * @param array $args Optional. Override the defaults. - * @return string The body of the response + * @return WP_Error|string The body of the response or WP_Error on failure. */ function wp_remote_request($url, $args = array()) { $objFetchSite = _wp_http_get_object(); @@ -1157,7 +1157,7 @@ function wp_remote_request($url, $args = array()) { * * @param string $url Site URL to retrieve. * @param array $args Optional. Override the defaults. - * @return string The body of the response + * @return WP_Error|string The body of the response or WP_Error on failure. */ function wp_remote_get($url, $args = array()) { $objFetchSite = _wp_http_get_object(); @@ -1174,7 +1174,7 @@ function wp_remote_get($url, $args = array()) { * * @param string $url Site URL to retrieve. * @param array $args Optional. Override the defaults. - * @return string The body of the response + * @return WP_Error|string The body of the response or WP_Error on failure. */ function wp_remote_post($url, $args = array()) { $objFetchSite = _wp_http_get_object(); @@ -1190,7 +1190,7 @@ function wp_remote_post($url, $args = array()) { * * @param string $url Site URL to retrieve. * @param array $args Optional. Override the defaults. - * @return string The body of the response + * @return WP_Error|string The body of the response or WP_Error on failure. */ function wp_remote_head($url, $args = array()) { $objFetchSite = _wp_http_get_object();