Make WordPress Core

Ticket #47396: 47396-cs.diff

File 47396-cs.diff, 883 bytes (added by peterwilsoncc, 6 years ago)

CS Fixes rquired by wp-cron.php prior to fixing #47396

  • src/wp-cron.php

    diff --git a/src/wp-cron.php b/src/wp-cron.php
    index ca478e4..1d848c3 100644
    a b if ( empty( $doing_wp_cron ) ) { 
    8888                if ( $doing_cron_transient && ( $doing_cron_transient + WP_CRON_LOCK_TIMEOUT > $gmt_time ) ) {
    8989                        return;
    9090                }
    91                 $doing_cron_transient = $doing_wp_cron = sprintf( '%.22F', microtime( true ) );
     91                $doing_wp_cron        = sprintf( '%.22F', microtime( true ) );
     92                $doing_cron_transient = $doing_wp_cron;
    9293                set_transient( 'doing_cron', $doing_wp_cron );
    9394        } else {
    9495                $doing_wp_cron = $_GET['doing_wp_cron'];
    foreach ( $crons as $timestamp => $cronhooks ) { 
    114115
    115116                        $schedule = $v['schedule'];
    116117
    117                         if ( $schedule != false ) {
     118                        if ( ! $schedule ) {
    118119                                $new_args = array( $timestamp, $schedule, $hook, $v['args'] );
    119120                                call_user_func_array( 'wp_reschedule_event', $new_args );
    120121                        }