mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Code is Poetry: CS Fixes required in wp-cron.php.
See #47396, #41057. Built from https://develop.svn.wordpress.org/trunk@45559 git-svn-id: http://core.svn.wordpress.org/trunk@45370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
225de4e6eb
commit
fdb8ff4980
@ -88,7 +88,8 @@ if ( empty( $doing_wp_cron ) ) {
|
||||
if ( $doing_cron_transient && ( $doing_cron_transient + WP_CRON_LOCK_TIMEOUT > $gmt_time ) ) {
|
||||
return;
|
||||
}
|
||||
$doing_cron_transient = $doing_wp_cron = sprintf( '%.22F', microtime( true ) );
|
||||
$doing_wp_cron = sprintf( '%.22F', microtime( true ) );
|
||||
$doing_cron_transient = $doing_wp_cron;
|
||||
set_transient( 'doing_cron', $doing_wp_cron );
|
||||
} else {
|
||||
$doing_wp_cron = $_GET['doing_wp_cron'];
|
||||
@ -114,7 +115,7 @@ foreach ( $crons as $timestamp => $cronhooks ) {
|
||||
|
||||
$schedule = $v['schedule'];
|
||||
|
||||
if ( $schedule != false ) {
|
||||
if ( ! $schedule ) {
|
||||
$new_args = array( $timestamp, $schedule, $hook, $v['args'] );
|
||||
call_user_func_array( 'wp_reschedule_event', $new_args );
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45558';
|
||||
$wp_version = '5.3-alpha-45559';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user