Skip to:
Content

BuddyPress.org

Ticket #5657: bp-xprofile-template-5657.diff

File bp-xprofile-template-5657.diff, 1.1 KB (added by tw2113, 10 years ago)
  • src/bp-xprofile/bp-xprofile-template.php

     
    2525        var $user_id;
    2626
    2727        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(
    2929                        'profile_group_id'    => $profile_group_id,
    3030                        'user_id'             => $user_id,
    3131                        'hide_empty_groups'   => $hide_empty_groups,
     
    600600        $groups = wp_cache_get( 'xprofile_groups_inc_empty', 'bp' );
    601601
    602602        if ( empty( $groups ) ) {
    603                 $groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );
     603                $groups = bp_xprofile_get_groups( array( 'fetch_fields' => true ) );
    604604                wp_cache_set( 'xprofile_groups_inc_empty', $groups, 'bp' );
    605605        }
    606606