From f3b7b7f966f0f90787e15a4d8da61b07e639fee2 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Wed, 9 Jan 2019 08:36:07 +0000 Subject: [PATCH] Cron: Fix undefined variable notice. Restore `$gmt_time` variable removed in error from [44483]. Props afragen. Fixes #45870. git-svn-id: https://develop.svn.wordpress.org/trunk@44505 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-cron.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-cron.php b/src/wp-cron.php index d487770f71..ca478e4c46 100644 --- a/src/wp-cron.php +++ b/src/wp-cron.php @@ -76,6 +76,8 @@ if ( empty( $crons ) ) { die(); } +$gmt_time = microtime( true ); + // The cron lock: a unix timestamp from when the cron was spawned. $doing_cron_transient = get_transient( 'doing_cron' );