Skip to:
Content

BuddyPress.org

Changeset 6360


Ignore:
Timestamp:
09/29/2012 10:58:07 AM (12 years ago)
Author:
djpaul
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.6/bp-activity/bp-activity-functions.php

    r6093 r6360  
    11831183    $args = wp_parse_args( $args, $defaults );
    11841184
     1185    do_action( 'bp_before_activity_delete', $args );
     1186
    11851187    // Adjust the new mention count of any mentioned member
    11861188    bp_activity_adjust_mention_count( $args['id'], 'delete' );
     
    11941196    else
    11951197        $user_id = $args['user_id'];
    1196 
    1197     do_action( 'bp_before_activity_delete', $args );
    11981198
    11991199    $latest_update = bp_get_user_meta( $user_id, 'bp_latest_update', true );
Note: See TracChangeset for help on using the changeset viewer.