Changeset 3772 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 01/20/2011 06:25:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r3771 r3772 245 245 246 246 // Call the action before the delete so plugins can still fetch information about it 247 do_action( 'bp_activity_ action_delete_activity', $_POST['id'], $activity->user_id );247 do_action( 'bp_activity_before_action_delete_activity', $_POST['id'], $activity->user_id ); 248 248 249 249 if ( !bp_activity_delete( array( 'id' => $_POST['id'], 'user_id' => $activity->user_id ) ) ) { … … 252 252 } 253 253 254 do_action( 'bp_activity_action_delete_activity', $_POST['id'], $activity->user_id ); 255 254 256 return true; 255 257 } … … 278 280 279 281 /* Call the action before the delete so plugins can still fetch information about it */ 280 do_action( 'bp_activity_ action_delete_activity', $_POST['id'], $comment->user_id );282 do_action( 'bp_activity_before_action_delete_activity', $_POST['id'], $comment->user_id ); 281 283 282 284 if ( !bp_activity_delete_comment( $comment->item_id, $comment->id ) ) { … … 284 286 return false; 285 287 } 288 289 do_action( 'bp_activity_action_delete_activity', $_POST['id'], $comment->user_id ); 286 290 287 291 return true;
Note: See TracChangeset
for help on using the changeset viewer.