Changeset 5837 for trunk/bp-members/bp-members-functions.php
- Timestamp:
- 02/24/2012 10:34:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-functions.php
r5829 r5837 1051 1051 $current_field = $usermeta["field_{$field_id}"]; 1052 1052 xprofile_set_field_data( $field_id, $user_id, $current_field ); 1053 1054 // Save the visibility level 1055 $visibility_level = !empty( $usermeta['field_' . $field_id . '_visibility'] ) ? $usermeta['field_' . $field_id . '_visibility'] : 'public'; 1056 xprofile_set_field_visibility_level( $field_id, $user_id, $visibility_level ); 1053 1057 } 1054 1058 } … … 1109 1113 if ( !empty( $current_field ) ) 1110 1114 xprofile_set_field_data( $field_id, $user_id, $current_field ); 1115 1116 // Save the visibility level 1117 $visibility_level = !empty( $user['meta']['field_' . $field_id . '_visibility'] ) ? $user['meta']['field_' . $field_id . '_visibility'] : 'public'; 1118 xprofile_set_field_visibility_level( $field_id, $user_id, $visibility_level ); 1111 1119 } 1112 1120 }
Note: See TracChangeset
for help on using the changeset viewer.