Verified Commit 9b2ef2b7 authored by Erick Hitter's avatar Erick Hitter
Browse files

Clarify why Core's constants or request helpers aren't used

parent 124a003b
......@@ -28,6 +28,7 @@ class Events extends Singleton {
* Prepare environment to run job
* Must run as early as possible, particularly before any client code is loaded
* This also runs before Core has parsed the request and set the \REST_REQUEST constant
public function prepare_environment() {
if ( ! is_rest_endpoint_request( 'run' ) ) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment