[wp-trac] [WordPress Trac] #11428: class WP_Http_ExtHTTP
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 14 13:54:12 UTC 2009
#11428: class WP_Http_ExtHTTP
--------------------------+-------------------------------------------------
Reporter: arena | Owner: dd32
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.9
Component: HTTP | Version:
Severity: major | Keywords:
--------------------------+-------------------------------------------------
Sometimes http_request return informations that are just warnings and
considered by class WP_Http_ExtHTTP has errors.
Testing response_code should be more accurate.
so in class WP_Http_ExtHTTP, line :
if ( false === $strResponse || ! empty($info['error']) )
becomes :
{{{
if ($info['response_code'] != 200 && ( false === $strResponse || !
empty($info['error']) ))
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11428>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list