[buddypress-trac] [BuddyPress Trac] #7619: `groups_create_group()` messes with creator_id

buddypress-trac noreply at wordpress.org
Fri Nov 3 19:08:00 UTC 2017


#7619: `groups_create_group()` messes with creator_id
--------------------------+-----------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.0
Component:  Groups        |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------
 It's technically possible to update a group using `groups_create_group()`,
 but it is pretty finicky with respect to `creator_id`.

 `groups_create_group()` assigns the logged-in user to `creator_id`. This
 means that, when running the function programatically or in a non-standard
 way, you have to manually pass `creator_id` to avoid having it overwritten
 with potentially incorrect information.
 https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-groups/bp-
 groups-functions.php#L134

 `creator_id` (and probably status?) should be inherited from the existing
 group, in the same way that `$name` and `$slug` are.
 https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-groups/bp-
 groups-functions.php#L119

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7619>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list