[wp-trac] [WordPress Trac] #49495: Undefined method WP_HTTP_Response::set_matched_route() called by dispatch() in WP_REST_Server class

WordPress Trac noreply at wordpress.org
Mon Feb 24 10:19:22 UTC 2020


#49495: Undefined method WP_HTTP_Response::set_matched_route() called by dispatch()
in WP_REST_Server class
--------------------------+------------------------------
 Reporter:  ali11007      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  5.3.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  docs, rest-api
--------------------------+------------------------------
Changes (by ocean90):

 * keywords:  needs-patch close => needs-patch
 * focuses:  rest-api => docs, rest-api


Comment:

 It's still odd that `rest_ensure_response()` returns a `WP_HTTP_Response`
 instance if such an object is passed. To me it looks like somebody thought
 that `WP_HTTP_Response` is an interface?

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


More information about the wp-trac mailing list