Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4461 closed defect (bug) (fixed)

The action "bp_before_activity_delete" is called after the activity is deleted

Reported by: gagan0123's profile gagan0123 Owned by:
Milestone: 1.6.2 Priority: normal
Severity: normal Version: 1.6
Component: Activity Keywords: dev-feedback
Cc: gagan@…

Description

In the file bp-activity-functions.php, on line 1188, the activity is deleted and then the action "bp_before_activity_delete" is performed on line 1197, so the script can never have any access before the deletion of activity(which I do urgently need for my plugin)

Change History (6)

#1 @gagan0123
12 years ago

  • Cc gagan@… added
  • Component changed from Core to Activity
  • Version set to 1.6

#2 @boonebgorges
12 years ago

  • Keywords dev-feedback added

Confirmed. Looks like it's been that way since the action was first introduced in http://buddypress.trac.wordpress.org/changeset/3772

Does anybody foresee any problems with moving it where it belongs, just after the args are parsed?

#3 @boonebgorges
12 years ago

  • Milestone changed from Awaiting Review to 1.6.2

#4 @DJPaul
12 years ago

I think it should be ok.

#5 @djpaul
12 years ago

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

(In [6359]) Move the bp_before_activity_delete action above the call which deletes the activity. Fixes #4461, props boonebgorges

This change allows us to have access to the items before they are deleted.

#6 @djpaul
12 years ago

(In [6360]) Move the bp_before_activity_delete action above the call which deletes the activity. Fixes #4461, props boonebgorges

This change allows us to have access to the items before they are deleted.

Note: See TracTickets for help on using tickets.