Check if isset to avoid warning. Props Alex King. fixes #3160
git-svn-id: https://develop.svn.wordpress.org/trunk@4221 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d8250fa8ce
commit
3ad814fe9d
|
@ -102,7 +102,7 @@ function wp_cron() {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$keys = array_keys( $crons );
|
$keys = array_keys( $crons );
|
||||||
if ( $keys[0] > time() )
|
if ( isset($keys[0]) && $keys[0] > time() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$schedules = wp_get_schedules();
|
$schedules = wp_get_schedules();
|
||||||
|
|
Loading…
Reference in New Issue