Opened 7 years ago
Closed 7 years ago
#7619 closed defect (bug) (fixed)
`groups_create_group()` messes with creator_id
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Groups | Keywords: | |
Cc: |
Description
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
Attachments (1)
Change History (4)
#1
@
7 years ago
- Owner set to boonebgorges
- Resolution set to fixed
- Status changed from new to closed
#2
@
7 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening because apparently this is a problem for other properties in groups_create_group()
.
In 11735: