PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.13
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.13
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 | stripe/controllers/FrmTransLiteAppController.php +0 -38 6.26.1 → 6.13 View file →
@@ -5,12 +5,8 @@
5 5
6 6 class FrmTransLiteAppController {
7 7
8 8 /**
9 - * Install or upgrade database structures.
10 - *
11 - * @param mixed $old_db_version Previous database version, or false on fresh install.
12 - *
13 9 * @return void
14 10 */
15 11 public static function install( $old_db_version = false ) {
16 12 self::maybe_schedule_cron();
@@ -67,14 +63,9 @@
67 63
68 64 foreach ( $overdue_subscriptions as $sub ) {
69 65 $last_payment = $frm_payment->get_one_by( $sub->id, 'sub_id' );
70 66
71 - if ( ! $last_payment ) {
72 - continue;
73 - }
74 -
75 67 $log_message = 'Subscription #' . $sub->id . ': ';
76 -
77 68 if ( $sub->status === 'future_cancel' ) {
78 69 FrmTransLiteSubscriptionsController::change_subscription_status(
79 70 array(
80 71 'status' => 'canceled',
@@ -106,9 +97,8 @@
106 97 $last_payment = false;
107 98 }
108 99
109 100 $log_message .= $status . ' triggers run ';
110 -
111 101 if ( $last_payment ) {
112 102 $log_message .= 'on payment #' . $last_payment->id;
113 103 }
114 104 }//end if
@@ -133,9 +123,8 @@
133 123 * @return void
134 124 */
135 125 private static function update_sub_for_new_payment( $sub, $last_payment ) {
136 126 $frm_sub = new FrmTransLiteSubscription();
137 -
138 127 if ( $last_payment->status === 'complete' ) {
139 128 $frm_sub->update(
140 129 $sub->id,
141 130 array(
@@ -152,9 +141,8 @@
152 141 * Add to the fail count.
153 142 * If the subscription has failed > 3 times, set it to canceled.
154 143 *
155 144 * @param object $sub
156 - *
157 145 * @return void
158 146 */
159 147 private static function add_one_fail( $sub ) {
160 148 $frm_sub = new FrmTransLiteSubscription();
@@ -173,38 +161,12 @@
173 161 }
174 162
175 163 /**
176 164 * @param array $atts
177 - *
178 165 * @return void
179 166 */
180 167 private static function maybe_trigger_changes( $atts ) {
181 168 if ( $atts['payment'] ) {
182 169 FrmTransLiteActionsController::trigger_payment_status_change( $atts );
183 - }
184 - }
185 -
186 - /**
187 - * This is called when the Payments submodule is active.
188 - * It ensures that the hidden repeater cadence input exists even when another add-on is handling the settings.
189 - *
190 - * @since 6.22
191 - *
192 - * @param array $args
193 - *
194 - * @return void
195 - */
196 - public static function add_repeat_cadence_value( $args ) {
197 - $action = $args['form_action'];
198 -
199 - if ( ! empty( $action->post_content['repeat_cadence'] ) ) {
200 - $params = array(
201 - 'type' => 'hidden',
202 - 'class' => 'frm-repeat-cadence-value',
203 - 'value' => $action->post_content['repeat_cadence'],
204 - );
205 - echo '<input ';
206 - FrmAppHelper::array_to_html_params( $params, true );
207 - echo ' />';
208 170 }
209 171 }
210 172 }