| @@ -268,9 +268,15 @@ | ||
| 268 | 268 | $frm_settings = FrmAppHelper::get_settings(); |
| 269 | 269 | $process_form = FrmAppHelper::get_post_param( 'process_form', '', 'sanitize_text_field' ); |
| 270 | 270 | |
| 271 | 271 | if ( ! wp_verify_nonce( $process_form, 'process_form_nonce' ) ) { |
| 272 | - wp_die( esc_html( $frm_settings->admin_permission ) ); | |
| 272 | + $error_args = array( | |
| 273 | + 'title' => __( 'Verification failed', 'formidable' ), | |
| 274 | + 'body' => $frm_settings->admin_permission, | |
| 275 | + 'cancel_text' => __( 'Cancel', 'formidable' ), | |
| 276 | + ); | |
| 277 | + FrmAppController::show_error_modal( $error_args ); | |
| 278 | + return; | |
| 273 | 279 | } |
| 274 | 280 | |
| 275 | 281 | $errors = array(); |
| 276 | 282 | $message = ''; |