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-groups/bp-groups-actions.php

    r5402 r5431  
    5555    if ( isset( $_COOKIE['bp_new_group_id'] ) ) {
    5656        $bp->groups->new_group_id = $_COOKIE['bp_new_group_id'];
    57         $bp->groups->current_group = new BP_Groups_Group( $bp->groups->new_group_id );
     57        $bp->groups->current_group = groups_get_group( array( 'group_id' => $bp->groups->new_group_id ) );
    5858    }
    5959
Note: See TracChangeset for help on using the changeset viewer.