* Intended for non-interactive use, so all output ends up in the error log
...
...
@@ -16,14 +17,14 @@ use WP_CLI;
*/
functionrun_event($command){
if(!defined('WP_CLI')||!\WP_CLI){
/* translators: 1: Plugin's prefix for log messages, 2. WP-CLI command that would have run */
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);
$no_wp_cli=newWP_Error('no-wp-cli',__('Attempted to run event without WP-CLI loaded.','wp-cli-cron-control-offload'));
/* translators: 1: Plugin's prefix for log messages, 2. WP-CLI command that would have run */
trigger_error(sprintf(__('%1$s: Attempted to run blocked command. (%2$s)','wp-cli-cron-control-offload'),MESSAGE_PREFIX,var_export($command,true)),E_USER_WARNING);