Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
9b2ef2b7
Verified
Commit
9b2ef2b7
authored
Dec 06, 2016
by
Erick Hitter
Browse files
Clarify why Core's constants or request helpers aren't used
parent
124a003b
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/class-events.php
View file @
9b2ef2b7
...
...
@@ -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'
)
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment