wp_cron() array warning fix ups from Owen. fixes #2436
git-svn-id: https://develop.svn.wordpress.org/trunk@3522 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d5c2312e67
commit
953064226a
|
@ -2357,11 +2357,10 @@ function spawn_cron() {
|
|||
}
|
||||
|
||||
function wp_cron() {
|
||||
if (array_shift(array_keys(get_option('cron'))) > time())
|
||||
$crons = get_option('cron');
|
||||
if (!is_array($crons) || array_shift(array_keys($crons)) > time())
|
||||
return;
|
||||
|
||||
$crons = get_option('cron');
|
||||
$newcrons = $crons;
|
||||
foreach ($crons as $timestamp => $cronhooks) {
|
||||
if ($timestamp > time()) break;
|
||||
foreach($cronhooks as $hook => $args) {
|
||||
|
|
Loading…
Reference in New Issue