[wp-trac] [WordPress Trac] #28887: Different data type for HTTP response code
WordPress Trac
noreply at wordpress.org
Mon Jul 14 02:09:10 UTC 2014
#28887: Different data type for HTTP response code
--------------------------+-----------------------------
Reporter: lonnylot | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Depending on the transport implementation (cURL or PHP Streams) used when
calling `wp_remote_get` the returned data type for the response code will
be different. If cURL is used then it will be an integer. If PHP Streams
are used it will be a string. Since the transport implementation is
abstracted away it would make it easier if the data types of the returns
would also be consistent.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28887>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list