trigger_error('Attempted to run event without WP-CLI loaded. ('.var_export($command,true).')',E_USER_WARNING);
trigger_error(sprintf(__('%1$s: Attempted to run event without WP-CLI loaded. (%2$s)','wp-cli-cron-control-offload'),MESSAGE_PREFIX,var_export($command,true)),E_USER_WARNING);
return;
}
if(!validate_args($command)){
trigger_error('Attempted to run blocked WP-CLI command. ('.var_export($command,true).')',E_USER_WARNING);
trigger_error(sprintf(__('%1$s: Attempted to run blocked WP-CLI command. (%2$s)','wp-cli-cron-control-offload'),MESSAGE_PREFIX,var_export($command,true)),E_USER_WARNING);
return;
}
...
...
@@ -32,9 +32,10 @@ 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