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/FrmAppController.php +7 -2 6.32 → trunk View file →
@@ -1329,9 +1329,9 @@
1329 1329 }
1330 1330
1331 1331 /**
1332 1332 * The payment cron is unscheduled when Formidable is deactivated.
1333 - * We need to add it back again on activation if Stripe is configured.
1333 + * We need to add it back again on activation if any payment gateway is configured.
1334 1334 *
1335 1335 * @since 6.5
1336 1336 *
1337 1337 * @return void
@@ -1336,9 +1336,13 @@
1336 1336 *
1337 1337 * @return void
1338 1338 */
1339 1339 private static function maybe_activate_payment_cron() {
1340 - if ( ! FrmStrpLiteConnectHelper::stripe_connect_is_setup() ) {
1340 + $stripe_connected = FrmStrpLiteConnectHelper::at_least_one_mode_is_setup();
1341 + $square_connected = FrmSquareLiteConnectHelper::at_least_one_mode_is_setup();
1342 + $paypal_connected = FrmPayPalLiteConnectHelper::at_least_one_mode_is_setup();
1343 +
1344 + if ( ! $stripe_connected && ! $square_connected && ! $paypal_connected ) {
1341 1345 return;
1342 1346 }
1343 1347
1344 1348 FrmTransLiteAppController::maybe_schedule_cron();
@@ -1414,8 +1418,9 @@
1414 1418 'cancel_url' => '',
1415 1419 'cancel_classes' => '',
1416 1420 'continue_url' => '',
1417 1421 'continue_classes' => '',
1422 + 'continue_target' => '',
1418 1423 'icon' => 'frm_lock_simple',
1419 1424 );
1420 1425
1421 1426 $error_args = wp_parse_args( $error_args, $defaults );