Make WordPress Core

Changeset 3522


Ignore:
Timestamp:
02/13/2006 05:30:44 AM (20 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.