From 184c501d5cc8e4cf45fd518bcf745f35bc3ba4b5 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Wed, 9 Jan 2019 08:37:51 +0000 Subject: [PATCH] Cron: Fix undefined variable notice. Restore `$gmt_time` variable removed in error from [44483]. Props afragen. Fixes #45870. Built from https://develop.svn.wordpress.org/trunk@44505 git-svn-id: http://core.svn.wordpress.org/trunk@44336 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-cron.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-cron.php b/wp-cron.php index d487770f71..ca478e4c46 100644 --- a/wp-cron.php +++ b/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' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index c066529c38..0ad528530c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44504'; +$wp_version = '5.1-alpha-44505'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.