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 | stripe/controllers/FrmStrpLiteAppController.php +12 -24 6.32.1 → trunk View file →
@@ -68,32 +68,8 @@
68 68 return admin_url( 'admin.php?page=formidable-settings&t=stripe_settings' );
69 69 }
70 70
71 71 /**
72 - * Redirect to Stripe settings when payments are not yet installed
73 - * and the payments page is accessed by its URL.
74 - *
75 - * @return void
76 - */
77 - public static function maybe_redirect_to_stripe_settings() {
78 - if ( ! FrmAppHelper::is_admin_page( 'formidable-payments' ) ) {
79 - return;
80 - }
81 -
82 - if ( class_exists( 'FrmPaymentsController' ) ) {
83 - // Never redirect when someone is using the PayPal add-on.
84 - return;
85 - }
86 -
87 - if ( FrmTransLiteAppHelper::payments_table_exists() ) {
88 - return;
89 - }
90 -
91 - wp_safe_redirect( self::get_payments_settings_url() );
92 - die();
93 - }
94 -
95 - /**
96 72 * Add the gateway for compatibility with the Payments submodule.
97 73 * This adds the Stripe checkbox option to the list of gateways.
98 74 *
99 75 * @param array $gateways
@@ -257,6 +233,18 @@
257 233 self::$delete_pay_entry = false;
258 234 return FrmTransLiteActionsController::fill_entry_from_previous( $values, $field );
259 235 }
260 236 return $values;
237 + }
238 +
239 + /**
240 + * Redirect to Stripe settings when payments are not yet installed
241 + * and the payments page is accessed by its URL.
242 + *
243 + * @deprecated 6.33
244 + *
245 + * @return void
246 + */
247 + public static function maybe_redirect_to_stripe_settings() {
248 + _deprecated_function( __METHOD__, '6.33' );
261 249 }
262 250 }