[wp-trac] [WordPress Trac] #39452: add the rest API root url to the admin header

WordPress Trac noreply at wordpress.org
Tue Jan 3 22:30:49 UTC 2017

#39452: add the rest API root url to the admin header
 Reporter:  pbearne                 |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  REST API                |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:

Comment (by dd32):

 Passing `rest_url( '/' )` into the header isn't useful, as it lacks the
 nonce, but ignoring that - I guess the main question is should we be
 pushing most clients to utilising the `wp-api` script, or rolling their
 own XHR handlers?

 One of the main reasons I've avoided using `wp-api` personally is that I
 haven't found any documentation of how I'm supposed to utilise it, I'm not
 sure others would've faired much better.

Ticket URL: <https://core.trac.wordpress.org/ticket/39452#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list