Changeset 5794
- Timestamp:
- 02/15/2012 08:52:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r5792 r5794 155 155 156 156 // Support arrays and comma-separated strings 157 if ( !empty( $exclude_fields ) && !is_array( $exclude_fields ) ) { 158 $exclude_fields = explode( ',', $exclude_fields ); 159 } 160 161 // Sanitization - ensure that each field_id passed is an integer 162 $exclude_fields_cs = array(); 163 foreach( (array)$exclude_fields as $exclude_field ) { 164 $efint = (int)$exclude_field; 165 if ( !empty( $efint ) ) { 166 $exclude_fields_cs[] = $efint; 167 } 168 } 157 $exclude_fields_cs = wp_parse_id_list( $exclude_fields ); 169 158 170 159 // Visibility - Handled here so as not to be overridden by sloppy use of the
Note: See TracChangeset
for help on using the changeset viewer.