[wp-trac] [WordPress Trac] #40919: REST API: Allow overriding `jQuery.ajax` calls from within wp-admin

WordPress Trac noreply at wordpress.org
Fri Jul 14 16:40:26 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
-------------------------+-------------------------------------------------

Comment (by westonruter):

 @jnylen0 Instead of adding `wp.apiRequest` via a newly-enqueued script,
 what about adding this as `wp.api.request` and make it part of the
 existing `wp-api.js`? This will be required for this to be part of 4.8.1
 since minor releases can't introduce new files (does not apply to tests)
 due to how automatic updates work.

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


More information about the wp-trac mailing list