From d64f028b6049e61b692d88e6d775ffa10b17560e Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@8535 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;