Make WordPress Core


Ignore:
Timestamp:
05/24/2015 05:25:52 PM (11 years ago)
Author:
DrewAPicture
Message:

Improve inline documentation for the cron lock behavior.

Props ericlewis.
Fixes #32478.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-cron.php

    r31804 r32580  
    6565    die();
    6666
    67 $doing_cron_transient = get_transient( 'doing_cron');
     67
     68// The cron lock: a unix timestamp from when the cron was spawned.
     69$doing_cron_transient = get_transient( 'doing_cron' );
    6870
    6971// Use global $doing_wp_cron lock otherwise use the GET lock. If no lock, trying grabbing a new lock.
     
    8082}
    8183
    82 // Check lock
     84/*
     85 * The cron lock (a unix timestamp set when the cron was spawned),
     86 * must match $doing_wp_cron (the "key").
     87 */
    8388if ( $doing_cron_transient != $doing_wp_cron )
    8489    return;
Note: See TracChangeset for help on using the changeset viewer.