WordPress.org

Make WordPress Core

Ticket #11428: #11428.patch

File #11428.patch, 671 bytes (added by arena, 8 years ago)

patch

  • wp-includes/http.php

     
    11801180
    11811181                // Error may still be set, Response may return headers or partial document, and error
    11821182                // contains a reason the request was aborted, eg, timeout expired or max-redirects reached.
    1183                 if ( false === $strResponse || ! empty($info['error']) )
     1183                if ($info['response_code'] != 200 && ( false === $strResponse || ! empty($info['error']) ))
    11841184                        return new WP_Error('http_request_failed', $info['response_code'] . ': ' . $info['error']);
    11851185
    11861186                if ( ! $r['blocking'] )