← All changes
|
square/controllers/FrmSquareLiteSettingsController.php
+2
-12
6.26
→
trunk
View file →
| @@ -17,9 +17,9 @@ | ||
| 17 | 17 | public static function add_settings_section( $sections ) { |
| 18 | 18 | $sections['square'] = array( |
| 19 | 19 | 'class' => self::class, |
| 20 | 20 | 'function' => 'route', |
| 21 | - 'icon' => 'frm_icon_font frm_square_icon', | |
| 21 | + 'icon' => 'frmfont frm_square_icon', | |
| 22 | 22 | ); |
| 23 | 23 | |
| 24 | 24 | return $sections; |
| 25 | 25 | } |
| @@ -44,18 +44,8 @@ | ||
| 44 | 44 | include FrmSquareLiteAppHelper::plugin_path() . '/views/settings/form.php'; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * @return array | |
| 49 | - */ | |
| 50 | - private static function get_default_settings_atts() { | |
| 51 | - return array( | |
| 52 | - 'errors' => array(), | |
| 53 | - 'message' => '', | |
| 54 | - ); | |
| 55 | - } | |
| 56 | - | |
| 57 | - /** | |
| 58 | 48 | * Handle processing changes to global Stripe Settings. |
| 59 | 49 | * |
| 60 | 50 | * @return void |
| 61 | 51 | */ |
| @@ -61,8 +51,8 @@ | ||
| 61 | 51 | */ |
| 62 | 52 | public static function process_form() { |
| 63 | 53 | $settings = FrmSquareLiteAppHelper::get_settings(); |
| 64 | 54 | // phpcs:ignore WordPress.Security.NonceVerification.Missing |
| 65 | - $settings->update( $_POST ); | |
| 55 | + $settings->update( wp_unslash( $_POST ) ); | |
| 66 | 56 | $settings->store(); |
| 67 | 57 | } |
| 68 | 58 | } |