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 | classes/models/fields/FrmFieldUserID.php +8 -0 6.27 → trunk View file →
@@ -47,8 +47,11 @@
47 47 protected function include_form_builder_file() {
48 48 return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-user-id.php';
49 49 }
50 50
51 + /**
52 + * @param array $args
53 + */
51 54 public function prepare_field_html( $args ) {
52 55 $args = $this->fill_display_field_values( $args );
53 56 $value = $this->get_field_value( $args );
54 57
@@ -70,8 +73,13 @@
70 73 $updating = $action === 'update';
71 74 return is_numeric( $this->field['value'] ) || $posted_value || $updating ? $this->field['value'] : $user_ID;
72 75 }
73 76
77 + /**
78 + * @param array $args
79 + *
80 + * @return array
81 + */
74 82 public function validate( $args ) {
75 83 // phpcs:ignore Universal.Operators.StrictComparisons
76 84 if ( '' == $args['value'] ) {
77 85 return array();