Use current_time() instead of time(). fixes #2489
git-svn-id: http://svn.automattic.com/wordpress/trunk@3559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
605d4a617a
commit
f517a9c06c
|
@ -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