[wp-trac] [WordPress Trac] #34305: Protect the `wp/v[0-9]*` namespace
WordPress Trac
noreply at wordpress.org
Thu Oct 15 01:56:35 UTC 2015
#34305: Protect the `wp/v[0-9]*` namespace
--------------------------------------+------------------
Reporter: rachelbaker | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: dev-feedback needs-patch | Focuses:
--------------------------------------+------------------
Comment (by rmccue):
We can probably protect these in `register_rest_route`, and require them
to be registered via `WP_REST_Server->register_route`? Alternatively,
maybe you have to pass `_no_really_i_know_what_i_am_doing => true` in the
args.
Not sure how we protect this without locking the plugin out. We could
check the backtrace and see if the caller was in the API plugin? ;)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34305#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list