Ticket #5657: bp-xprofile-template-5657.diff
File bp-xprofile-template-5657.diff, 1.1 KB (added by , 10 years ago) |
---|
-
src/bp-xprofile/bp-xprofile-template.php
25 25 var $user_id; 26 26 27 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 $this->groups = BP_XProfile_Group::get( array(28 $this->groups = bp_xprofile_get_groups( array( 29 29 'profile_group_id' => $profile_group_id, 30 30 'user_id' => $user_id, 31 31 'hide_empty_groups' => $hide_empty_groups, … … 600 600 $groups = wp_cache_get( 'xprofile_groups_inc_empty', 'bp' ); 601 601 602 602 if ( empty( $groups ) ) { 603 $groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );603 $groups = bp_xprofile_get_groups( array( 'fetch_fields' => true ) ); 604 604 wp_cache_set( 'xprofile_groups_inc_empty', $groups, 'bp' ); 605 605 } 606 606