Skip to:
Content

BuddyPress.org

Changeset 4735


Ignore:
Timestamp:
07/20/2011 08:03:35 PM (11 years ago)
Author:
djpaul
Message:

Allow replacement of groups object in group component. Fixes #3312, props boonebgorges and ddean

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r4676 r4735  
    9595
    9696            $bp->is_single_item  = true;
    97             $this->current_group = new BP_Groups_Group( $group_id );
     97            $current_group_class = apply_filters( 'bp_groups_current_group_class', 'BP_Groups_Group' );
     98            $this->current_group = apply_filters( 'bp_groups_current_group_object', new $current_group_class( $group_id ) );
    9899
    99100            // When in a single group, the first action is bumped down one because of the
Note: See TracChangeset for help on using the changeset viewer.