PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.74
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.74
1.2.74 1.2.73 1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 All 174 releases
← All changes | includes/helpers/forms.php +3 -2 1.2.651.2.74 View file →
@@ -136,8 +136,9 @@
136 136 *
137 137 * @param array $data Submitted form data
138 138 * @param string $type Form type.
139 139 * @param array|bool $fields Fields applicable for validation.
140 + * @param string $extra_where Extra where query.
140 141 *
141 142 * @return array|mixed|WP_Error Validated form data.
142 143 * @since 1.0.0
143 144 * @package userswp
@@ -142,12 +143,12 @@
142 143 * @since 1.0.0
143 144 * @package userswp
144 145 *
145 146 */
146 -function uwp_validate_fields( $data, $type, $fields = false ) {
147 +function uwp_validate_fields( $data, $type, $fields = false, $extra_where = '' ) {
147 148 $validation = new UsersWP_Validation();
148 149
149 - return $validation->validate_fields( $data, $type, $fields );
150 + return $validation->validate_fields( $data, $type, $fields, $extra_where );
150 151 }
151 152
152 153 /**
153 154 * Returns form field label. If empty returns the field title.