Skip to:
Content

BuddyPress.org

Changeset 7511


Ignore:
Timestamp:
11/04/2013 03:59:47 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Fetching XProfile field visibility levels should not be dependant on fetching field data.

Allow the fetching of only visibility levels without field data in BP_XProfile_Group::get() by moving the block outside of the $fetch_field_data check. Fixes #5222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r7509 r7511  
    175175            return $groups;
    176176
     177        // Maybe fetch field data
    177178        if ( ! empty( $fetch_field_data ) ) {
    178179
     
    231232                }
    232233            }
    233 
    234             if ( !empty( $fetch_visibility_level ) ) {
    235                 $fields = self::fetch_visibility_level( $user_id, $fields );
    236             }
     234        }
     235
     236        // Maybe fetch visibility levels
     237        if ( !empty( $fetch_visibility_level ) ) {
     238            $fields = self::fetch_visibility_level( $user_id, $fields );
    237239        }
    238240
Note: See TracChangeset for help on using the changeset viewer.