Make WordPress Core

Changeset 3929


Ignore:
Timestamp:
06/27/2006 06:04:27 AM (18 years ago)
Author:
ryan
Message:

Fix array_keys error when cron option is not an array. Props robmiller. fixes #2814

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cron.php

    r3860 r3929  
    6666
    6767function spawn_cron() {
    68     $keys = array_keys( get_option( 'cron' ) );
     68    $crons = get_option( 'cron' )
     69   
     70    if( !is_array($crons) )
     71        return;
     72   
     73    $keys = array_keys( $crons );
    6974    if ( array_shift( $keys ) > time() )
    7075        return;
Note: See TracChangeset for help on using the changeset viewer.