Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#4561 closed defect (bug) (fixed)

Fix this hook please. -- action: groups_before_delete_group

Reported by: michael.ecklund Owned by: Michael Ecklund
Priority: normal Milestone: 1.7
Component: Groups Version:
Severity: normal Keywords: needs-patch needs-testing
Cc: info@…

Description

bp-groups/bp-groups-functions.php Line: 212

The group is deleted before this hook is called.

If I hook into groups_before_delete_group, I cannot fetch the group info based upon the $group_id because the group has already been deleted.

Isn't the point of this hook to be called BEFORE a group is deleted?

Change History (2)

#1 @boonebgorges
14 years ago

  • Milestone Awaiting Review1.7
  • Version 1.7

Correct. This is an error that appears to have been in place for years.

#2 @boonebgorges
14 years ago

  • Resolutionfixed
  • Status newclosed

(In [6347]) Fire groups_before_delete_group action before group is actually deleted

Fixes #4561

Props michael.ecklund

Note: See TracTickets for help on using tickets.