mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Docs: Improve a comment about $doing_wp_cron
global in wp-cron.php
.
Props chinteshprajapati, subrataemfluence, nielslange. Fixes #46104. Built from https://develop.svn.wordpress.org/trunk@46733 git-svn-id: http://core.svn.wordpress.org/trunk@46533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4ec53dc54c
commit
3a735ec87a
@ -86,7 +86,7 @@ $gmt_time = microtime( true );
|
|||||||
// The cron lock: a unix timestamp from when the cron was spawned.
|
// The cron lock: a unix timestamp from when the cron was spawned.
|
||||||
$doing_cron_transient = get_transient( 'doing_cron' );
|
$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( $doing_wp_cron ) ) {
|
||||||
if ( empty( $_GET['doing_wp_cron'] ) ) {
|
if ( empty( $_GET['doing_wp_cron'] ) ) {
|
||||||
// Called from external script/job. Try setting a lock.
|
// Called from external script/job. Try setting a lock.
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-46732';
|
$wp_version = '5.4-alpha-46733';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user