Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/01/2011 08:45:38 PM (15 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-themes/bp-default/_inc/ajax.php

    r5329 r5431  
    516516                return false;
    517517
    518         if ( !$group = new BP_Groups_Group( $_POST['gid'], false, false ) )
     518        if ( !$group = groups_get_group( array( 'group_id' => $_POST['gid'] ) ) )
    519519                return false;
    520520
Note: See TracChangeset for help on using the changeset viewer.