| @@ -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 | } |