returnnew\WP_Error('no-free-threads',__('No resources available to run this job.','wp-cron-control-revisited'));
returnnew\WP_Error('no-free-threads',__('No resources available to run this job.','automattic-cron-control'));
}
// Prepare environment to run job
...
...
@@ -164,7 +164,7 @@ class Events extends Singleton {
returnarray(
'success'=>true,
'message'=>sprintf(__('Job with action `%1$s` and arguments `%2$s` completed in %3$d seconds.','wp-cron-control-revisited'),$event['action'],maybe_serialize($event['args']),$time_end-$time_start),
'message'=>sprintf(__('Job with action `%1$s` and arguments `%2$s` completed in %3$d seconds.','automattic-cron-control'),$event['action'],maybe_serialize($event['args']),$time_end-$time_start),
error_log(sprintf(__('%s: %s set to unexpected value; must be corrected for proper behaviour.','wp-cron-control-revisited'),'WP-Cron Control Revisited',$constant));
error_log(sprintf(__('%s: %s set to unexpected value; must be corrected for proper behaviour.','automattic-cron-control'),'Cron Control',$constant));
wp_send_json_error(new\WP_Error('forbidden',sprintf(__('Normal cron execution is blocked when the %s plugin is active.','wp-cron-control-revisited'),'WP-Cron Control Revisited')));
wp_send_json_error(new\WP_Error('forbidden',sprintf(__('Normal cron execution is blocked when the %s plugin is active.','automattic-cron-control'),'Cron Control')));
}
}
...
...
@@ -89,7 +89,7 @@ class Main extends Singleton {
publicfunctionadmin_notice(){
?>
<divclass="notice notice-error">
<p><?phpprintf(__('<strong>%1$s</strong>: To use this plugin, define the constant %2$s.','wp-cron-control-revisited'),'WP-Cron Control Revisited','<code>WP_CRON_CONTROL_SECRET</code>');?></p>
<p><?phpprintf(__('<strong>%1$s</strong>: To use this plugin, define the constant %2$s.','automattic-cron-control'),'Cron Control','<code>WP_CRON_CONTROL_SECRET</code>');?></p>