Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

#4561 closed defect (bug) (fixed)

Fix this hook please. -- action: groups_before_delete_group

Reported by: michaelecklund's profile michael.ecklund Owned by: michael-ecklund's profile Michael Ecklund
Milestone: 1.7 Priority: normal
Severity: normal Version:
Component: Groups 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
12 years ago

  • Milestone changed from Awaiting Review to 1.7
  • Version 1.7 deleted

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

#2 @boonebgorges
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(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.