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
This commit is contained in:
parent
2eb0dffaaa
commit
e4a40aa709
|
@ -208,7 +208,7 @@ class WP_Http {
|
||||||
$response = $transport->request($url, $r, $headers, $body);
|
$response = $transport->request($url, $r, $headers, $body);
|
||||||
|
|
||||||
if( !is_wp_error($response) )
|
if( !is_wp_error($response) )
|
||||||
break;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
|
@ -649,7 +649,6 @@ class WP_Http_Streams {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
var_dump($arrContext);
|
|
||||||
if ( ! is_null($body) )
|
if ( ! is_null($body) )
|
||||||
$arrContext['http']['content'] = $body;
|
$arrContext['http']['content'] = $body;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue