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 +8 -6 6.32.1 → 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 /**
@@ -140,9 +142,9 @@
140 142 wp_send_json_success();
141 143 }
142 144
143 145 /**
144 - * Updates flows data.
146 + * Updates flows data. This increases the count of flow_data[ $key ][ $value ].
145 147 *
146 148 * @since 6.16.1
147 149 *
148 150 * @param string $key Flow key.