Skip to content
Snippets Groups Projects
Commit d9ff51a0 authored by Erick Hitter's avatar Erick Hitter
Browse files

Don't bother retrying. Will update readme to explain the errors the plugin...

Don't bother retrying. Will update readme to explain the errors the plugin provides, and emphasize the need for a CLI runner.
parent 8e936d58
Branches
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ use WP_CLI; ...@@ -16,7 +16,6 @@ use WP_CLI;
*/ */
function run_event( $command ) { function run_event( $command ) {
if ( ! defined( 'WP_CLI' ) || ! \WP_CLI ) { if ( ! defined( 'WP_CLI' ) || ! \WP_CLI ) {
// TODO: reschedule at least once or twice.
/* translators: 1: Plugin's prefix for log messages, 2. WP-CLI command that would have run */ /* 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 ); 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; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment