| @@ -118,13 +118,13 @@ | ||
| 118 | 118 | $sections['licenses'] = array( |
| 119 | 119 | 'class' => 'FrmAddonsController', |
| 120 | 120 | 'function' => 'license_settings', |
| 121 | 121 | 'name' => __( 'Plugin Licenses', 'formidable' ), |
| 122 | - 'icon' => 'frm_icon_font frm_keyalt_icon', | |
| 122 | + 'icon' => 'frmfont frm_key_icon', | |
| 123 | 123 | 'ajax' => true, |
| 124 | 124 | ); |
| 125 | 125 | } |
| 126 | - } | |
| 126 | + }//end if | |
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | 129 | * @param array<array> $sections |
| 130 | 130 | */ |
| @@ -158,9 +158,9 @@ | ||
| 158 | 158 | $section['function'] = $original; |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | $sections[ $key ] = $section; |
| 162 | - } | |
| 162 | + }//end foreach | |
| 163 | 163 | |
| 164 | 164 | return $sections; |
| 165 | 165 | } |
| 166 | 166 | |
| @@ -202,9 +202,9 @@ | ||
| 202 | 202 | /** |
| 203 | 203 | * Render the global currency selector if Pro is up to date. |
| 204 | 204 | * |
| 205 | 205 | * @param FrmSettings $frm_settings |
| 206 | - * @param string $more_html | |
| 206 | + * @param string $more_html | |
| 207 | 207 | * @return void |
| 208 | 208 | */ |
| 209 | 209 | public static function maybe_render_currency_selector( $frm_settings, $more_html ) { |
| 210 | 210 | if ( false !== strpos( $more_html, 'id="frm_currency"' ) ) { |
| @@ -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 = ''; |