Make WordPress Core

Opened 7 weeks ago

#41549 new enhancement

REST API: Use `wp.apiRequest` helper in `wp.api` Backbone client

Reported by: jnylen0 Owned by:
Milestone: 4.9 Priority: normal
Severity: normal Version:
Component: REST API Keywords: needs-patch needs-unit-tests
Focuses: javascript, administration, rest-api Cc:


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.

Change History (0)

Note: See TracTickets for help on using tickets.