$value =
wp_cache_get( 'doing_cron', 'transient', true
);
} else { $row =
$wpdb->
get_row( $wpdb->
prepare( "SELECT option_value FROM
$wpdb->options WHERE option_name = %s LIMIT 1", '_transient_doing_cron'
) );
if ( is_object( $row ) ) { $value =
$row->option_value;
} } return $value;
}$crons =
wp_get_ready_cron_jobs();
if ( empty( $crons ) ) { die();
}$gmt_time =
microtime( true
);
// The cron lock: a unix timestamp from when the cron was spawned.
$doing_cron_transient =
get_transient( 'doing_cron'
);
// 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 ) ) {