Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-cli-cron-control-offload
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
WP Plugins
wp-cli-cron-control-offload
Commits
a15a433d
Commit
a15a433d
authored
7 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Note more TODOs
parent
058a267d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/functions.php
+2
-0
2 additions, 0 deletions
includes/functions.php
includes/run.php
+1
-0
1 addition, 0 deletions
includes/run.php
with
3 additions
and
0 deletions
includes/functions.php
+
2
−
0
View file @
a15a433d
...
...
@@ -18,6 +18,7 @@ function is_command_allowed( $command ) {
* @return array
*/
function
get_command_whitelist
()
{
// TODO: constant!
// Supported built-in commands
$whitelist
=
array
(
'cache'
,
...
...
@@ -54,6 +55,7 @@ function get_command_whitelist() {
* @return array
*/
function
get_command_blacklist
()
{
// TODO: constant!
return
array
(
'cli'
,
'config'
,
...
...
This diff is collapsed.
Click to expand it.
includes/run.php
+
1
−
0
View file @
a15a433d
...
...
@@ -32,6 +32,7 @@ function run_event( $command ) {
// Command failed
if
(
!
is_object
(
$output
)
||
is_wp_error
(
$output
)
)
{
// TODO: message consistency, revisit using ACTION as the "key", seems wrong
trigger_error
(
'WP-CLI command failed. ('
.
var_export
(
$command
,
true
)
.
')'
,
E_USER_WARNING
);
trigger_error
(
var_export
(
$output
,
true
),
E_USER_WARNING
);
return
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment