PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/controllers/FrmCronController.php +4 -3 6.25.1 → trunk View file →
@@ -34,8 +34,10 @@
34 34 /**
35 35 * Schedules cron events.
36 36 *
37 37 * @since 6.7
38 + *
39 + * @return void
38 40 */
39 41 public static function schedule_events() {
40 42 $events = self::get_events();
41 43
@@ -57,12 +59,11 @@
57 59 *
58 60 * @return void
59 61 */
60 62 public static function remove_crons() {
61 - $events = self::get_events();
63 + foreach ( self::get_events() as $event => $recurrence ) {
64 + $timestamp = wp_next_scheduled( $event );
62 65
63 - foreach ( $events as $event => $recurrence ) {
64 - $timestamp = wp_next_scheduled( $event );
65 66 if ( false !== $timestamp ) {
66 67 wp_unschedule_event( $timestamp, $event );
67 68 }
68 69 }