Changeset 3522

Show
Ignore:
Timestamp:
02/13/06 05:30:44 (3 years ago)
Author:
ryan
Message:

wp_cron() array warning fix ups from Owen. fixes #2436

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r3517 r3522  
    23582358 
    23592359function wp_cron() { 
    2360     if (array_shift(array_keys(get_option('cron'))) > time()) 
     2360    $crons = get_option('cron'); 
     2361    if (!is_array($crons) || array_shift(array_keys($crons)) > time()) 
    23612362        return; 
    23622363 
    2363     $crons = get_option('cron'); 
    2364     $newcrons = $crons; 
    23652364    foreach ($crons as $timestamp => $cronhooks) { 
    23662365        if ($timestamp > time()) break;