Streams transport fixes from jacobsantos. fixes #7456 see #4779

git-svn-id: https://develop.svn.wordpress.org/trunk@8548 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-08-05 16:33:20 +00:00
parent 5260a37685
commit f43f8fcc29
1 changed files with 2 additions and 2 deletions

View File

@ -666,9 +666,9 @@ class WP_Http_Streams {
$context = stream_context_create($arrContext);
if ( !defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ) )
$handle = @fopen($url, 'r');
$handle = @fopen($url, 'r', false, $context);
else
$handle = fopen($url, 'r');
$handle = fopen($url, 'r', false, $context);
if ( ! $handle)
return new WP_Error('http_request_failed', sprintf(__('Could not open handle for fopen() to %s'), $url));