Skip to:
Content

BuddyPress.org

Changeset 11735


Ignore:
Timestamp:
11/03/2017 07:30:41 PM (7 years ago)
Author:
boonebgorges
Message:

Improve handling of creator_id when updating an existing group.

When updating an existing group using groups_create_group(),
the default value of creator_id should be the creator_id of that
existing group.

Fixes #7619.

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r11671 r11735  
    119119        $name  = ! empty( $name ) ? $name : $group->name;
    120120        $slug  = ! empty( $slug ) ? $slug : $group->slug;
     121        $creator_id  = ! empty( $creator_id ) ? $creator_id : $group->creator_id;
    121122        $description = ! empty( $description ) ? $description : $group->description;
    122123
Note: See TracChangeset for help on using the changeset viewer.