[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 16:43:02 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:  Future Release
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  docs, rest-api
--------------------------+-----------------------------
Changes (by ocean90):

 * version:  5.3.2 => 4.4
 * milestone:  Awaiting Review => Future Release


Comment:

 There was an interface [https://github.com/WP-API/WP-
 API/blob/25e36ceb3589ddaa01e4104e6a42e674dcd050e5/lib/infrastructure
 /class-wp-http-responseinterface.php WP_HTTP_ResponseInterface] which
 didn't get merged based on the [https://make.wordpress.org/core/2015/09/23
 /committer-reviews-of-the-rest-api/ committer reviews]. See also
 [https://github.com/WP-API/WP-
 API/commit/25e36ceb3589ddaa01e4104e6a42e674dcd050e5  this related commit]
 about the `@return` docs. But at this time the interface didn't declare
 the [https://github.com/WP-API/WP-
 API/blob/25e36ceb3589ddaa01e4104e6a42e674dcd050e5/lib/infrastructure
 /class-wp-rest-server.php#L682 required methods either.]

 https://github.com/WordPress/wordpress-develop/pull/166 is a possible fix
 for this.

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


More information about the wp-trac mailing list