Changeset 4362 for trunk/bp-xprofile/bp-xprofile-filters.php
- Timestamp:
- 05/15/2011 05:23:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-filters.php
r4351 r4362 67 67 * @param string $field_value 68 68 * @param int $field_id 69 * @param bool $reserialize Whether to reserialize arrays before returning. Defaults to true 69 70 * @return string 70 71 */ 71 function xprofile_sanitize_data_value_before_save ( $field_value, $field_id ) {72 function xprofile_sanitize_data_value_before_save ( $field_value, $field_id, $reserialize = true ) { 72 73 73 74 // Return if empty … … 94 95 } 95 96 96 $filtered_field_value = serialize( $filtered_values ); 97 if ( $reserialize ) 98 $filtered_field_value = serialize( $filtered_values ); 99 else 100 $filtered_field_value = $filtered_values; 97 101 } 98 102
Note: See TracChangeset
for help on using the changeset viewer.