[wp-trac] [WordPress Trac] #37097: Return array from WP_Http::request for compatibility

WordPress Trac noreply at wordpress.org
Tue Jun 14 02:55:37 UTC 2016


#37097: Return array from WP_Http::request for compatibility
--------------------------+--------------------
 Reporter:  rmccue        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.6
Component:  HTTP API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by Shelob9):

 I see that on L358 you are adding `$requests_response` to the array that
 is returned. I wonder if it makes sense to add a property to the class for
 last request's response and put it there. We could use that like we use
 `$wpdb->last_result` and similar properties like `last_error` in that
 class.

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


More information about the wp-trac mailing list