From d37f5eb754ecbf0e741f9f00233eecd5c9284723 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@10359 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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();