mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@8548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bf16f5dd53
commit
30b6066f07
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user