Make WordPress Core

Ticket #58471: 58471-1.diff

File 58471-1.diff, 530 bytes (added by nihar007, 18 months ago)
  • src/wp-includes/cron.php

    diff --git a/src/wp-includes/cron.php b/src/wp-includes/cron.php
    index 663f819ab0..255be3c72e 100644
    a b function spawn_cron( $gmt_time = 0 ) { 
    845845         * Multiple processes on multiple web servers can run this code concurrently,
    846846         * this lock attempts to make spawning as atomic as possible.
    847847         */
    848         $lock = get_transient( 'doing_cron' );
     848        $lock = (int) get_transient( 'doing_cron' );
    849849
    850850        if ( $lock > $gmt_time + 10 * MINUTE_IN_SECONDS ) {
    851851                $lock = 0;