[wp-trac] [WordPress Trac] #34399: WP API 1.2 endpoints don't work with latest WP core master

WordPress Trac noreply at wordpress.org
Fri Oct 23 02:20:33 UTC 2015


#34399: WP API 1.2 endpoints don't work with latest WP core master
--------------------------+------------------------------
 Reporter:  mnelson4      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by mnelson4):

 So those're my 3 suggestions on how this can be solved (in my order of
 preference):
 1. Have the REST API in core use the endpoints `wp-rest` instead of `wp-
 json`
 2. Add my 3rd code snippet (which uses the `rest_pre_serve_request`
 filter) to the WP API 1.2 plugin (or some form of it)
 3. Leave the incompatibility, but just tell users of the WP API 1.2 plugin
 to use the my 2nd code snippet (which uses the `rest_url_prefix` filter)

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


More information about the wp-trac mailing list