Ticket #2773: before-activity.patch
| File before-activity.patch, 809 bytes (added by , 16 years ago) |
|---|
-
bp-activity.php
367 367 else 368 368 bp_core_add_message( __( 'There was an error when deleting that activity', 'buddypress' ), 'error' ); 369 369 370 do_action( 'bp_activity_action_deleted_activity', $activity_id ); 371 370 372 bp_core_redirect( wp_get_referer() ); 371 373 } 372 374 add_action( 'wp', 'bp_activity_action_delete_activity', 3 ); … … 830 832 831 833 $args = wp_parse_args( $args, $defaults ); 832 834 835 do_action( 'bp_before_activity_delete', $args ); 836 833 837 if ( !$activity_ids_deleted = BP_Activity_Activity::delete( $args ) ) 834 838 return false; 835 839 … … 1212 1216 add_action( 'bp_loaded', 'bp_register_activity_actions', 8 ); 1213 1217 1214 1218 1215 ?> 1216 No newline at end of file 1219 ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)