Make WordPress Core

Ticket #46104: 46104-3.patch

File 46104-3.patch, 641 bytes (added by nielslange, 6 years ago)
  • src/wp-cron.php

    diff --git a/src/wp-cron.php b/src/wp-cron.php
    index ca478e4c46..595a6a87e1 100644
    a b $gmt_time = microtime( true ); 
    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, try 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.