Tiny typo in groups_hierarchy_create_group()
-
Hi David-
I’m programmatically adding BP groups using the wrapper function
groups_hierarchy_create_group()
and found a one-letter typo.function groups_hierarchy_create_group( $args = '' ) { if( $group_id = groups_create_group( $args ) ) { if( isset( $args['parent_id'] ) ) { $group = new BP_Group_Hierarchy( $group_id ); $group->parent_id = (int)$args['parent_id']; $group->save(); } return $group_id; } return false; }
$group = new BP_Group_Hierarchy( $group_id );
should read
$group = new BP_Groups_Hierarchy( $group_id );
.Thanks for the excellent plugin!
-David
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Tiny typo in groups_hierarchy_create_group()’ is closed to new replies.