bug found in Scheduler code
-
Hi,
You have a serious bug in the wpo_cron_update_sched function, you are redefining the $schedules rather than adding to them. Code should look like this:
function wpo_cron_update_sched( $schedules ) { $schedules['weekly'] = array('interval' => 60*60*24*7, 'display' => 'Once Weekly'); $schedules['otherweekly'] = array('interval' => 60*60*24*14, 'display' => 'Once Every Other Week'); return $schedules; }
http://codex.wordpress.org/Function_Reference/wp_get_schedules
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘bug found in Scheduler code’ is closed to new replies.