[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:42:09 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
--------------------------+------------------------------
Comment (by ali11007):
in {{{rest_ensure_response()}}} there is:
{{{
if ( $response instanceof WP_HTTP_Response ) {
return $response;
}
}}}
I think it should be:
{{{
if ( $response instanceof WP_REST_Response ) {
return $response;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49495#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list