Skip to:
Content

BuddyPress.org

Ticket #5222: 5222.patch

File 5222.patch, 647 bytes (added by johnjamesjacoby, 13 years ago)
  • bp-xprofile/bp-xprofile-classes.php

     
    174174                if ( empty( $fields ) )
    175175                        return $groups;
    176176
     177                // Maybe fetch field data
    177178                if ( ! empty( $fetch_field_data ) ) {
    178179
    179180                        // Fetch the field data for the user.
     
    230231                                        }
    231232                                }
    232233                        }
     234                }
    233235
    234                 }
     236                // Maybe fetch visibility levels
     237                if ( !empty( $fetch_visibility_level ) ) {
     238                        $fields = self::fetch_visibility_level( $user_id, $fields );
     239                }
    235240
    236241                // Merge the field array back in with the group array
    237242                foreach( (array) $groups as $group ) {