From 30b6066f07b693952554d73e8a440b98c2ee9d64 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 5 Aug 2008 16:33:20 +0000 Subject: [PATCH] Streams transport fixes from jacobsantos. fixes #7456 see #4779 git-svn-id: http://svn.automattic.com/wordpress/trunk@8548 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/http.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index f28cb83e1a..66b2d9f568 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -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));