Ticket #3312: bp-groups.patch
File bp-groups.patch, 1.6 KB (added by , 12 years ago) |
---|
-
trunk/bp-groups/bp-groups-functions.php
30 30 $args = wp_parse_args( $args, $defaults ); 31 31 extract( $args, EXTR_SKIP ); 32 32 33 return apply_filters( 'groups_get_group', new BP_Groups_Group( $group_id, true, $load_users ) ); 33 $group_class = apply_filters( 'groups_get_group_class', 'BP_Groups_Group' ); 34 return apply_filters( 'groups_get_group', new $group_class( $group_id, true, $load_users ) ); 34 35 } 35 36 36 37 /*** Group Creation, Editing & Deletion *****************************************/ -
trunk/bp-groups/bp-groups-loader.php
91 91 /** Single Group Globals **********************************************/ 92 92 93 93 // Are we viewing a single group? 94 if ( bp_is_groups_component() && $group_id = BP_Groups_Group::group_exists( bp_current_action() ) ) {94 if ( bp_is_groups_component() && $group_id = groups_check_group_exists( bp_current_action() ) ) { 95 95 96 96 $bp->is_single_item = true; 97 $this->current_group = new BP_Groups_Group( $group_id );97 $this->current_group = groups_get_group( $group_id ); 98 98 99 99 // When in a single group, the first action is bumped down one because of the 100 100 // group name, so we need to adjust this and set the group name to current_item.