Changeset 7914 for trunk/bp-xprofile/bp-xprofile-template.php
- Timestamp:
- 02/17/2014 07:42:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-template.php
r7888 r7914 25 25 var $user_id; 26 26 27 function __construct( $user_id, $profile_group_id, $hide_empty_groups = false, $fetch_fields = false, $fetch_field_data = false, $exclude_groups = false, $exclude_fields = false, $hide_empty_fields = false, $fetch_visibility_level = false ) {27 function __construct( $user_id, $profile_group_id, $hide_empty_groups = false, $fetch_fields = false, $fetch_field_data = false, $exclude_groups = false, $exclude_fields = false, $hide_empty_fields = false, $fetch_visibility_level = false, $update_meta_cache = true ) { 28 28 $this->groups = BP_XProfile_Group::get( array( 29 29 'profile_group_id' => $profile_group_id, … … 35 35 'fetch_visibility_level' => $fetch_visibility_level, 36 36 'exclude_groups' => $exclude_groups, 37 'exclude_fields' => $exclude_fields 37 'exclude_fields' => $exclude_fields, 38 'update_meta_cache' => $update_meta_cache, 38 39 ) ); 39 40 … … 175 176 'fetch_visibility_level' => $fetch_visibility_level_default, 176 177 'exclude_groups' => false, // Comma-separated list of profile field group IDs to exclude 177 'exclude_fields' => false // Comma-separated list of profile field IDs to exclude 178 'exclude_fields' => false, // Comma-separated list of profile field IDs to exclude 179 'update_meta_cache' => true, 178 180 ); 179 181 … … 181 183 extract( $r, EXTR_SKIP ); 182 184 183 $profile_template = new BP_XProfile_Data_Template( $user_id, $profile_group_id, $hide_empty_groups, $fetch_fields, $fetch_field_data, $exclude_groups, $exclude_fields, $hide_empty_fields, $fetch_visibility_level );185 $profile_template = new BP_XProfile_Data_Template( $user_id, $profile_group_id, $hide_empty_groups, $fetch_fields, $fetch_field_data, $exclude_groups, $exclude_fields, $hide_empty_fields, $fetch_visibility_level, $update_meta_cache ); 184 186 return apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template ); 185 187 }
Note: See TracChangeset
for help on using the changeset viewer.