[wp-trac] [WordPress Trac] #41549: REST API: Use `wp.apiRequest` helper in `wp.api` Backbone client
WordPress Trac
noreply at wordpress.org
Thu Feb 1 22:26:56 UTC 2018
#41549: REST API: Use `wp.apiRequest` helper in `wp.api` Backbone client
-------------------------------------+-------------------------------------
Reporter: jnylen0 | Owner: adamsilverstein
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit- | Focuses: javascript,
tests dev-feedback | administration, rest-api
-------------------------------------+-------------------------------------
Comment (by jnylen0):
@adamsilverstein I think most of the value in this change is in having
`wp-api.js` use `buildAjaxOptions`. I could have explained the reasoning
better in the ticket, but here is a good example of how this could be
helpful: #42807
I am not sure how to handle users overriding `Backbone.ajax`. It would be
good to see an example of this in WordPress context, otherwise I think it
is probably not very common.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41549#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list