[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
Sat May 23 14:34:52 UTC 2020


#49495: Undefined method WP_HTTP_Response::set_matched_route() called by dispatch()
in WP_REST_Server class
--------------------------+-----------------------------
 Reporter:  ali11007      |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.5
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  docs, rest-api
--------------------------+-----------------------------
Changes (by ocean90):

 * owner:  (none) => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47849" 47849]:
 {{{
 #!CommitTicketReference repository="" revision="47849"
 Rest API: Ensure `rest_ensure_response()` upgrades `WP_HTTP_Response` to
 `WP_REST_Response`.

 An instance of `WP_HTTP_Response` doesn't ensure that the required methods
 used in `WP_REST_Server::dispatch()` exist, currently causing a fatal
 error.

 Props ali11007, TimothyBlynJacobs, ocean90.
 Fixes #49495.
 }}}

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


More information about the wp-trac mailing list