Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/01/2011 08:45:38 PM (13 years ago)
Author:
boonebgorges
Message:

Adds WP cache support to groups_get_group() and switches internal instantiations of BP_Groups_Group out for calls to groups_get_group() where possible. Fixes #3770

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-avatars.php

    r5301 r5431  
    151151        $item_name = bp_core_get_user_displayname( $item_id );
    152152    elseif ( 'group' == $object )
    153         $item_name = bp_get_group_name( new BP_Groups_Group( $item_id ) );
     153        $item_name = bp_get_group_name( groups_get_group( array( 'group_id' => $item_id ) ) );
    154154    elseif ( 'blog' == $object )
    155155        $item_name = get_blog_option( $item_id, 'blogname' );
Note: See TracChangeset for help on using the changeset viewer.