Check if isset to avoid warning. Props Alex King. fixes #3160
git-svn-id: http://svn.automattic.com/wordpress/trunk@4221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f3de5a0f0e
commit
4e2f949d74
|
@ -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