[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
Tue Oct 24 17:58:21 UTC 2023
#42061: Add new utility function for checking if the current request is a REST API
request.
------------------------------------+------------------------------------
Reporter: lots.0.logs | Owner: TimothyBlynJacobs
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Bootstrap/Load | Version: 4.9
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: rest-api, performance
------------------------------------+------------------------------------
Comment (by flixos90):
@TimothyBlynJacobs How do you feel about using this ticket for that
function? FWIW, I don't think the original ticket was clear about the
intended purpose of the function, as in:
* Is this an actual REST ''request''?
* Or is this a WP REST route being hit (whether through a request, or
through preloading within a regular WordPress request?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42061#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list