[wp-trac] [WordPress Trac] #35329: Permit rest_do_request() to be used in non-REST API contexts

WordPress Trac noreply at wordpress.org
Wed Jan 6 17:31:12 UTC 2016


#35329: Permit rest_do_request() to be used in non-REST API contexts
------------------------------------------+------------------
 Reporter:  danielbachhuber               |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  4.5
Component:  REST API                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------

Comment (by westonruter):

 +1

 In my looong career with the REST API (*wink*), I've already had to write
 an equivalent to this `rest_internal_request()` function a couple times to
 ensure the `$wp_rest_server` is constructed for internal requests.

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


More information about the wp-trac mailing list