PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 3.06.06
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v3.06.06
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 | classes/models/fields/FrmFieldPhone.php +0 -28 6.4.13.06.06 View file →
@@ -1,8 +1,5 @@
1 1 <?php
2 -if ( ! defined( 'ABSPATH' ) ) {
3 - die( 'You are not allowed to call this page directly.' );
4 -}
5 2
6 3 /**
7 4 * @since 3.0
8 5 */
@@ -12,12 +9,8 @@
12 9 * @var string
13 10 * @since 3.0
14 11 */
15 12 protected $type = 'phone';
16 -
17 - /**
18 - * @var string
19 - */
20 13 protected $display_type = 'text';
21 14
22 15 /**
23 16 * @var bool
@@ -24,16 +17,8 @@
24 17 * @since 3.0
25 18 */
26 19 protected $holds_email_values = true;
27 20
28 - /**
29 - * @var bool
30 - */
31 - protected $array_allowed = false;
32 -
33 - /**
34 - * @return bool[]
35 - */
36 21 protected function field_settings_for_type() {
37 22 return array(
38 23 'size' => true,
39 24 'clear_on_focus' => true,
@@ -41,22 +26,9 @@
41 26 'format' => true,
42 27 );
43 28 }
44 29
45 - /**
46 - * @return string
47 - */
48 30 protected function html5_input_type() {
49 31 $frm_settings = FrmAppHelper::get_settings();
50 -
51 32 return $frm_settings->use_html ? 'tel' : 'text';
52 - }
53 -
54 - /**
55 - * @since 4.0.04
56 - *
57 - * @return void
58 - */
59 - public function sanitize_value( &$value ) {
60 - FrmAppHelper::sanitize_value( 'sanitize_text_field', $value );
61 33 }
62 34 }