PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.13
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.13
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 +3 -8 6.326.13 View file →
@@ -9,9 +9,8 @@
9 9 class FrmFieldPhone extends FrmFieldType {
10 10
11 11 /**
12 12 * @var string
13 - *
14 13 * @since 3.0
15 14 */
16 15 protected $type = 'phone';
17 16
@@ -16,9 +15,8 @@
16 15 protected $type = 'phone';
17 16
18 17 /**
19 18 * @var bool
20 - *
21 19 * @since 3.0
22 20 */
23 21 protected $holds_email_values = true;
24 22
@@ -48,9 +46,9 @@
48 46 public function show_primary_options( $args ) {
49 47 $field = $args['field'];
50 48
51 49 include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/phone/phone-type.php';
52 - FrmFieldsController::show_format_option( $field, true );
50 + FrmFieldsController::show_format_option( $field );
53 51
54 52 parent::show_primary_options( $args );
55 53 }
56 54
@@ -61,20 +59,19 @@
61 59 *
62 60 * @return void Outputs the HTML option tag directly.
63 61 */
64 62 protected function print_international_option() {
65 - // phpcs:disable Generic.WhiteSpace.ScopeIndent
66 63 ?>
67 64 <option
68 - value=""
65 + value="international"
69 66 class="frm_show_upgrade frm_noallow"
70 67 data-upgrade="<?php esc_attr_e( 'International phone field', 'formidable' ); ?>"
71 68 data-medium="international-phone-field"
69 + <?php selected( FrmField::get_option( $this->field, 'format' ), 'international' ); ?>
72 70 >
73 71 <?php esc_html_e( 'International', 'formidable' ); ?>
74 72 </option>
75 73 <?php
76 - // phpcs:enable Generic.WhiteSpace.ScopeIndent
77 74 }
78 75
79 76 /**
80 77 * @return string
@@ -84,10 +81,8 @@
84 81 }
85 82
86 83 /**
87 84 * @since 4.0.04
88 - *
89 - * @param array|string $value
90 85 *
91 86 * @return void
92 87 */
93 88 public function sanitize_value( &$value ) {