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