From e4a40aa7096ffe7a8f5e2f4c6b8e64efbd393303 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 4 Aug 2008 18:45:44 +0000 Subject: [PATCH] Return response in foreach loop and remove debugging line. Props santosj. see #4779 git-svn-id: http://svn.automattic.com/wordpress/trunk@8535 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/http.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 82d9cd5c3e..d447c93dd6 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -208,7 +208,7 @@ class WP_Http { $response = $transport->request($url, $r, $headers, $body); if( !is_wp_error($response) ) - break; + return $response; } return $response; @@ -649,7 +649,6 @@ class WP_Http_Streams { ) ); - var_dump($arrContext); if ( ! is_null($body) ) $arrContext['http']['content'] = $body;