mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -102,7 +102,7 @@ function wp_cron() {
|
||||
return;
|
||||
|
||||
$keys = array_keys( $crons );
|
||||
if ( $keys[0] > time() )
|
||||
if ( isset($keys[0]) && $keys[0] > time() )
|
||||
return;
|
||||
|
||||
$schedules = wp_get_schedules();
|
||||
|
||||
Reference in New Issue
Block a user