Skip to:
Content

BuddyPress.org

Ticket #3312: bp-groups-loader.php.patch

File bp-groups-loader.php.patch, 735 bytes (added by ddean, 12 years ago)

groups_object filter proposal

  • trunk/bp-groups/bp-groups-loader.php

     
    9393                if ( bp_is_groups_component() && $group_id = BP_Groups_Group::group_exists( bp_current_action() ) ) {
    9494
    9595                        $bp->is_single_item  = true;
    96                         $this->current_group = new BP_Groups_Group( $group_id );
     96                        $this->current_group = apply_filters( 'groups_get_group_object', new BP_Groups_Group( $group_id ), $group_id );
    9797
    9898                        // When in a single group, the first action is bumped down one because of the
    9999                        // group name, so we need to adjust this and set the group name to current_item.