Automattic\WP\Cron_Control\Cron_Options_CPT::find_unscheduled_jobs PHP Method

find_unscheduled_jobs() private method

Identify jobs unscheduled using wp_unschedule_event() by comparing current value with previous
private find_unscheduled_jobs ( $new, $old )
    private function find_unscheduled_jobs($new, $old)
    {
        $differences = array();
        $old = collapse_events_array($old);
        foreach ($old as $event) {
            $timestamp = $event['timestamp'];
            $action = $event['action'];
            $instance = $event['instance'];
            if (!isset($new[$timestamp][$action][$instance])) {
                $differences[] = array('timestamp' => $timestamp, 'action' => $action, 'instance' => $instance);
            }
        }
        return $differences;
    }