PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.24.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.24.1
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 | square/controllers/FrmSquareLiteSettingsController.php +13 -5 6.31 → 6.24.1 View file →
@@ -10,16 +10,15 @@
10 10 *
11 11 * @since 6.22
12 12 *
13 13 * @param array $sections
14 - *
15 14 * @return array
16 15 */
17 16 public static function add_settings_section( $sections ) {
18 17 $sections['square'] = array(
19 - 'class' => self::class,
18 + 'class' => __CLASS__,
20 19 'function' => 'route',
21 - 'icon' => 'frmfont frm_square_icon',
20 + 'icon' => 'frm_icon_font frm_square_icon',
22 21 );
23 22
24 23 return $sections;
25 24 }
@@ -36,9 +35,8 @@
36 35 /**
37 36 * Print the Stripe section for Global settings.
38 37 *
39 38 * @param array $atts
40 - *
41 39 * @return void
42 40 */
43 41 public static function global_settings_form( $atts = array() ) {
44 42 include FrmSquareLiteAppHelper::plugin_path() . '/views/settings/form.php';
@@ -44,8 +42,18 @@
44 42 include FrmSquareLiteAppHelper::plugin_path() . '/views/settings/form.php';
45 43 }
46 44
47 45 /**
46 + * @return array
47 + */
48 + private static function get_default_settings_atts() {
49 + return array(
50 + 'errors' => array(),
51 + 'message' => '',
52 + );
53 + }
54 +
55 + /**
48 56 * Handle processing changes to global Stripe Settings.
49 57 *
50 58 * @return void
51 59 */
@@ -51,8 +59,8 @@
51 59 */
52 60 public static function process_form() {
53 61 $settings = FrmSquareLiteAppHelper::get_settings();
54 62 // phpcs:ignore WordPress.Security.NonceVerification.Missing
55 - $settings->update( wp_unslash( $_POST ) );
63 + $settings->update( $_POST );
56 64 $settings->store();
57 65 }
58 66 }