Changeset 2733 for trunk/bp-activity.php
- Timestamp:
- 02/16/2010 12:33:39 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r2695 r2733 348 348 return false; 349 349 350 /* Call the action before the delete so plugins can still fetch information about it */ 351 do_action( 'bp_activity_action_delete_activity', $activity_id, $activity->user_id ); 352 350 353 /* Now delete the activity item */ 351 if ( bp_activity_delete( array( 'id' => $activity_id, 'user_id' => $activity->user_id ) ) )354 if ( bp_activity_delete( array( 'id' => $activity_id, 'user_id' => $activity->user_id ) ) ) 352 355 bp_core_add_message( __( 'Activity deleted', 'buddypress' ) ); 353 356 else 354 357 bp_core_add_message( __( 'There was an error when deleting that activity', 'buddypress' ), 'error' ); 355 356 do_action( 'bp_activity_action_delete_activity', $activity_id );357 358 358 359 bp_core_redirect( wp_get_referer() );
Note: See TracChangeset
for help on using the changeset viewer.