Skip to content
Snippets Groups Projects
Commit 23e1f2af authored by ale's avatar ale
Browse files

Avoid string conversion of args

parent 4079fb22
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,7 @@ function noblogs_run_cron_for_current_blog() {
foreach ($crons as $timestamp => $cronhooks) {
foreach ($cronhooks as $hook => $keys) {
foreach ($keys as $k => $v) {
$args_str = implode(', ', $v['args']);
echo " {$k} -> {$hook} ({$args_str})\n";
echo " {$k} -> {$hook}()\n";
$schedule = $v['schedule'];
if ($schedule) {
$result = wp_reschedule_event($timestamp, $schedule, $hook, $v['args'], true);
......
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