- Timestamp:
- 02/14/2016 01:48:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type.php
r10434 r10592 207 207 } 208 208 209 // If there's a whitelist set, also check the $value.209 // If there's a whitelist set, make sure that each value is a whitelisted value. 210 210 if ( ( true === $validated ) && ! empty( $values ) && ! empty( $this->validation_whitelist ) ) { 211 211 foreach ( (array) $values as $value ) { 212 $validated = in_array( $value, $this->validation_whitelist, true ); 212 if ( ! in_array( $value, $this->validation_whitelist, true ) ) { 213 $validated = false; 214 break; 215 } 213 216 } 214 217 }
Note: See TracChangeset
for help on using the changeset viewer.