[wp-trac] [WordPress Trac] #40919: REST API: Allow overriding `jQuery.ajax` calls from within wp-admin
WordPress Trac
noreply at wordpress.org
Wed Jun 21 19:33:13 UTC 2017
#40919: REST API: Allow overriding `jQuery.ajax` calls from within wp-admin
-------------------------+-------------------------------------------------
Reporter: jnylen0 | Owner: jnylen0
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.8.1
Component: REST API | Version: 4.8
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript, administration, rest-
dev-feedback | api
-------------------------+-------------------------------------------------
Changes (by timmydcrawford):
* keywords: has-patch needs-refresh dev-feedback => has-patch dev-feedback
Comment:
[[attachment:40919.2.diff]] changes the name of the method to
{{{wp.restRequest}}} and adds in {{{_wpnonce}}} to the {{{options.data}}}
that is passed along to the {{{$.ajax}}} call.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40919#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list