Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/24/2012 10:34:38 PM (13 years ago)
Author:
boonebgorges
Message:

Allows users to modify profile field visibility during registration. Fixes #4044.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-functions.php

    r5829 r5837  
    10511051                    $current_field = $usermeta["field_{$field_id}"];
    10521052                    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 );
    10531057                }
    10541058            }
     
    11091113                    if ( !empty( $current_field ) )
    11101114                        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 );
    11111119                }
    11121120            }
Note: See TracChangeset for help on using the changeset viewer.