Skip to content
Snippets Groups Projects
Commit 8462ac2f authored by ale's avatar ale
Browse files

Fix typo

parent 62b3b880
No related branches found
No related tags found
No related merge requests found
Pipeline #43750 passed
......@@ -35,14 +35,14 @@ function noblogs_run_cron_for_current_blog() {
if ($schedule) {
$result = wp_reschedule_event($timestamp, $schedule, $hook, $v['args'], true);
if (is_wp_error($result)) {
error_log('cron reschedule event error for hook: %1$s, code: %2$s, message: %3$s, data: %4%s',
error_log('cron reschedule event error for hook: %1$s, code: %2$s, message: %3$s, data: %4$s',
$hook, $result->get_error_code(), $result->get_error_message(), wp_json_encode($v));
do_action('cron_reschedule_event_error', $result, $hook, $v);
}
}
$result = wp_unschedule_event($timestamp, $hook, $v['args'], true);
if (is_wp_error($result)) {
error_log('cron unschedule event error for hook: %1$s, code: %2$s, message: %3$s, data: %4%s',
error_log('cron unschedule event error for hook: %1$s, code: %2$s, message: %3$s, data: %4$s',
$hook, $result->get_error_code(), $result->get_error_message(), wp_json_encode($v));
do_action('cron_unschedule_event_error', $result, $hook, $v);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment