[wp-trac] [WordPress Trac] #41549: REST API: Use `wp.apiRequest` helper in `wp.api` Backbone client

WordPress Trac noreply at wordpress.org
Thu Aug 3 14:50:15 UTC 2017


#41549: REST API: Use `wp.apiRequest` helper in `wp.api` Backbone client
-------------------------------------+-------------------------------------
 Reporter:  jnylen0                  |      Owner:
     Type:  enhancement              |     Status:  new
 Priority:  normal                   |  Milestone:  4.9
Component:  REST API                 |    Version:
 Severity:  normal                   |   Keywords:  needs-patch needs-unit-
  Focuses:  javascript,              |  tests
  administration, rest-api           |
-------------------------------------+-------------------------------------
 Follow-up to #40919.  The `wp-api.js` Backbone client should use
 `wp.apiRequest` to do its API calls.  This may be accomplished through
 overriding `Backbone.ajax` or through a change in the `wp-api.js` code.

 This will allow client-side code to override or modify all WP REST API
 calls in a single, centralized place.

 cc @adamsilverstein for your thoughts on the best way to achieve this.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41549>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list