[wp-trac] [WordPress Trac] #39830: Unable to detect REST/rest_no_route
WordPress Trac
noreply at wordpress.org
Fri Feb 10 20:08:37 UTC 2017
#39830: Unable to detect REST/rest_no_route
--------------------------+----------------------
Reporter: szepe.viktor | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: REST API | Version: 4.7.2
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
--------------------------+----------------------
Changes (by rmccue):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
The REST API routing system is independent of `template_redirect`, since
it's not part of the templating system. This is by design.
`rest_post_dispatch` or `rest_pre_serve_request` can be used to catch
errors from the API.
(It's also possible for 404 errors to be generated inside controllers, not
just by the routing. For example, a request to a nonexistent post ID will
throw a 404.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39830#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list