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/FrmUsageController.php +9 -8 6.27 → trunk View file →
@@ -55,19 +55,21 @@
55 55
56 56 /**
57 57 * Adds once weekly to the existing schedules.
58 58 *
59 + * WordPress core registers an identical 'weekly' schedule of its own, so this adds nothing.
60 + * The 'cron_schedules' registration is gone, and with it the translated label that made
61 + * this run before the text domain loaded.
62 + *
59 63 * @since 3.06.04
64 + * @deprecated 6.35
60 65 *
61 - * @param array $schedules Schedules.
66 + * @param array $schedules Unused. The registered cron schedules, keyed by schedule name.
62 67 *
63 68 * @return array
64 69 */
65 70 public static function add_schedules( $schedules = array() ) {
66 - $schedules['weekly'] = array(
67 - 'interval' => DAY_IN_SECONDS * 7,
68 - 'display' => __( 'Once Weekly', 'formidable' ),
69 - );
71 + _deprecated_function( __METHOD__, '6.35' );
70 72 return $schedules;
71 73 }
72 74
73 75 /**
@@ -77,10 +79,9 @@
77 79 *
78 80 * @return bool
79 81 */
80 82 public static function tracking_allowed() {
81 - $settings = FrmAppHelper::get_settings();
82 - return $settings->tracking;
83 + return (bool) FrmAppHelper::get_settings()->tracking;
83 84 }
84 85
85 86 /**
86 87 * @since 3.06.04
@@ -141,9 +142,9 @@
141 142 wp_send_json_success();
142 143 }
143 144
144 145 /**
145 - * Updates flows data.
146 + * Updates flows data. This increases the count of flow_data[ $key ][ $value ].
146 147 *
147 148 * @since 6.16.1
148 149 *
149 150 * @param string $key Flow key.