WordPress.org

Make WordPress Core

Ticket #46104: #46104.patch

File #46104.patch, 641 bytes (added by chinteshprajapati, 3 years ago)
  • wp-cron.php

     
    8181// The cron lock: a unix timestamp from when the cron was spawned.
    8282$doing_cron_transient = get_transient( 'doing_cron' );
    8383
    84 // Use global $doing_wp_cron lock otherwise use the GET lock. If no lock, trying grabbing a new lock.
     84// Use global $doing_wp_cron lock otherwise use the GET lock. If no lock, trying to grab a new lock.
    8585if ( empty( $doing_wp_cron ) ) {
    8686        if ( empty( $_GET['doing_wp_cron'] ) ) {
    8787                // Called from external script/job. Try setting a lock.