Use current_time() instead of time(). fixes #2489
git-svn-id: https://develop.svn.wordpress.org/trunk@3559 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5177b31702
commit
24f330346d
|
@ -2364,7 +2364,7 @@ function wp_cron() {
|
|||
return;
|
||||
|
||||
foreach ($crons as $timestamp => $cronhooks) {
|
||||
if ($timestamp > time()) break;
|
||||
if ($timestamp > current_time( 'timestamp' )) break;
|
||||
foreach($cronhooks as $hook => $args) {
|
||||
do_action($hook, $args['args']);
|
||||
$recurrence = $args['recur'];
|
||||
|
|
Loading…
Reference in New Issue