Make WordPress Core

Ticket #7456: 7456.r8546.diff

File 7456.r8546.diff, 601 bytes (added by jacobsantos, 18 years ago)

Note to self: Don't create patches when dead tired.

  • http.php

     
    666666                $context = stream_context_create($arrContext);
    667667
    668668                if ( !defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ) )
    669                         $handle = @fopen($url, 'r');
     669                        $handle = @fopen($url, 'r', false, $context);
    670670                else
    671                         $handle = fopen($url, 'r');
     671                        $handle = fopen($url, 'r', false, $context);
    672672
    673673                if ( ! $handle)
    674674                        return new WP_Error('http_request_failed', sprintf(__('Could not open handle for fopen() to %s'), $url));