WordPress.org

Make WordPress Core

Changeset 45562


Ignore:
Timestamp:
06/22/2019 01:42:58 PM (6 months ago)
Author:
peterwilsoncc
Message:

Cron: Fix condition reversed in [45559].

In [45559] a test for not-falsey was reversed to a falsey check.

Props obenland.
Fixes #47589.

File:
1 edited

Legend:

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

    r45560 r45562  
    118118            $schedule = $v['schedule'];
    119119
    120             if ( ! $schedule ) {
     120            if ( $schedule ) {
    121121                $new_args = array( $timestamp, $schedule, $hook, $v['args'] );
    122122                call_user_func_array( 'wp_reschedule_event', $new_args );
Note: See TracChangeset for help on using the changeset viewer.