Skip to content

Commit e879f7d

Browse files
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
1 parent 6cf77db commit e879f7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-cron.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function _get_cron_lock() {
8686
// The cron lock: a unix timestamp from when the cron was spawned.
8787
$doing_cron_transient = get_transient( 'doing_cron' );
8888

89-
// Use global $doing_wp_cron lock otherwise use the GET lock. If no lock, trying grabbing a new lock.
89+
// Use global $doing_wp_cron lock, otherwise use the GET lock. If no lock, try to grab a new lock.
9090
if ( empty( $doing_wp_cron ) ) {
9191
if ( empty( $_GET['doing_wp_cron'] ) ) {
9292
// Called from external script/job. Try setting a lock.

0 commit comments

Comments
 (0)