[wp-trac] [WordPress Trac] #42061: Add new utility function for checking if the current request is a REST API request.

WordPress Trac noreply at wordpress.org
Wed Jan 9 04:53:30 UTC 2019


#42061: Add new utility function for checking if the current request is a REST API
request.
------------------------------------+-----------------------
 Reporter:  lots.0.logs             |       Owner:  flixos90
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  5.1
Component:  Bootstrap/Load          |     Version:  4.9
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  rest-api
------------------------------------+-----------------------

Comment (by pento):

 `wp_is_json_request()` replaced some of the use cases for this function.

 @flixos90: Do you think `wp_doing_rest()` is still needed?

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


More information about the wp-trac mailing list