[wp-trac] [WordPress Trac] #37437: Requests_Cookie::parse() unable to parse WP_Http_Cookie object coming from WP_Http::request()

WordPress Trac noreply at wordpress.org
Tue Jul 26 13:16:15 UTC 2016


#37437: Requests_Cookie::parse() unable to parse WP_Http_Cookie object coming from
WP_Http::request()
--------------------------------------+-----------------------
 Reporter:  stephdau                  |       Owner:  rmccue
     Type:  defect (bug)              |      Status:  assigned
 Priority:  high                      |   Milestone:  4.6
Component:  HTTP API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-unit-tests has-patch  |     Focuses:
--------------------------------------+-----------------------
Changes (by ocean90):

 * keywords:  needs-patch has-unit-tests => has-unit-tests has-patch


Comment:

 [attachment:37437.2.diff]:

 * Converts `WP_Http_Cookie()` and `key => value` to `Requests_Cookie`.
 * Adds `WP_Http_Cookie::get_attributes()` to retrieve the cookie
 attributes which is used when converting `WP_Http_Cookie()` to
 `Requests_Cookie`.
 * Adds `isset()` checks to `WP_HTTP_Requests_Response::get_cookies()` for
 cookie attributes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37437#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list