Skip to:
Content

BuddyPress.org

Ticket #2264: 2264.001.diff

File 2264.001.diff, 887 bytes (added by cnorris23, 11 years ago)
  • bp-groups.php

     
    15431543
    15441544function groups_edit_base_group_details( $group_id, $group_name, $group_desc, $notify_members ) {
    15451545        global $bp;
     1546       
     1547        do_action( 'bbpress_init' );
    15461548
    15471549        if ( empty( $group_name ) || empty( $group_desc ) )
    15481550                return false;
     
    15581560                require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    15591561                groups_notification_group_updated( $group->id );
    15601562        }
     1563       
     1564        $defaults = array(
     1565                'forum_id' => groups_get_groupmeta( $group->id, 'forum_id' ),
     1566                'forum_name' => $group->name,
     1567                'forum_slug' => apply_filters( 'groups_forum_edit_slug', '', $group ),
     1568                'forum_desc' => $group->description,
     1569        );
     1570        bb_update_forum( $defaults );
    15611571
    15621572        do_action( 'groups_details_updated', $group->id );
    15631573