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

WordPress Trac noreply at wordpress.org
Sun Jun 4 07:51:17 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:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  javascript,
  dev-feedback                       |  administration, rest-api
-------------------------------------+-------------------------------------
Changes (by jnylen0):

 * keywords:  has-patch => has-patch needs-refresh dev-feedback
 * owner:   => jnylen0
 * status:  new => assigned


Comment:

 [attachment:40919.diff] is incomplete:

 - It changes the built `media-views.js` file but not the source file `wp-
 includes/js/media/views/embed/link.js`.
 - It also needs to be properly remade against a dev installation of WP.
 - Anything overriding `wp.RESTRequest` should depend on the `wp-rest-
 request` script; however, we probably want to avoid clobbering an existing
 `wp.RESTRequest` function.

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


More information about the wp-trac mailing list