From e879f7d45723a01ac94fe2fa28d68c39194f8772 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 15 Nov 2019 08:57:03 +0000 Subject: [PATCH] Docs: Improve a comment about `$doing_wp_cron` global in `wp-cron.php`. Props chinteshprajapati, subrataemfluence, nielslange. Fixes #46104. git-svn-id: https://develop.svn.wordpress.org/trunk@46733 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-cron.php b/src/wp-cron.php index d3ab354eda..73b4bfd49e 100644 --- a/src/wp-cron.php +++ b/src/wp-cron.php @@ -86,7 +86,7 @@ $gmt_time = microtime( true ); // The cron lock: a unix timestamp from when the cron was spawned. $doing_cron_transient = get_transient( 'doing_cron' ); -// Use global $doing_wp_cron lock otherwise use the GET lock. If no lock, trying grabbing a new lock. +// Use global $doing_wp_cron lock, otherwise use the GET lock. If no lock, try to grab a new lock. if ( empty( $doing_wp_cron ) ) { if ( empty( $_GET['doing_wp_cron'] ) ) { // Called from external script/job. Try setting a lock.