[wp-trac] [WordPress Trac] #17010: Inconsistent handling of HTTP response codes
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 1 00:15:09 UTC 2011
#17010: Inconsistent handling of HTTP response codes
--------------------------+------------------------------
Reporter: sivel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP | Version: 3.1
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+------------------------------
Comment (by sivel):
I believe the only time that we should return WP_Error is if the transport
failed, not due to the status of the request as defined b the response
code.
We should always return the response, and only return WP_Error for an
actual transport failure.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17010#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list