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

WordPress Trac noreply at wordpress.org
Mon Jan 18 07:02:01 UTC 2016


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

 * owner:   => rmccue
 * status:  new => accepted


Comment:

 New patch added. I dropped `rest_internal_request()` (I don't think we
 need this given the other pieces) and replaced the `rest_api_loaded()`
 internals to avoid duplication of the API initialisation.

 I don't think we need unit tests for this version (now that we don't have
 `rest_internal_request()`)?

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


More information about the wp-trac mailing list