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

WordPress Trac noreply at wordpress.org
Wed Aug 2 16:44:07 UTC 2017


#40919: REST API: Allow overriding `jQuery.ajax` calls from within wp-admin
-------------------------------------+-------------------------------------
 Reporter:  jnylen0                  |       Owner:  jnylen0
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  4.9
Component:  REST API                 |     Version:  4.8
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch has-unit-      |     Focuses:  javascript,
  tests commit                       |  administration, rest-api
-------------------------------------+-------------------------------------
Changes (by jnylen0):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41206"]:
 {{{
 #!CommitTicketReference repository="" revision="41206"
 REST API: Allow overriding `jQuery.ajax` calls from within wp-admin

 There are now 3 places where we call out to the REST API from within wp-
 admin.  This commit introduces a small library to allow overriding these
 calls, centralize nonce-passing logic, and eliminate the need to pass a
 full REST URL down to client code (this last feature is not yet used and
 will be explored in a separate ticket).

 Fixes #40919.
 }}}

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


More information about the wp-trac mailing list