Ticket #4222: 4222.02.patch
File 4222.02.patch, 1.2 KB (added by , 13 years ago) |
---|
-
bp-activity/bp-activity-filters.php
230 230 continue; 231 231 232 232 // If an activity_id is provided, we can send email and BP notifications 233 if ( $activity_id ) {233 if ( $activity_id && apply_filters( 'bp_activity_at_name_do_notifications', true ) ) { 234 234 bp_activity_at_message_notification( $activity_id, $user_id ); 235 235 } 236 236 -
bp-activity/bp-activity-classes.php
91 91 if ( false === $wpdb->query( $q ) ) 92 92 return false; 93 93 94 // If this is a new activity item, set the $id property 94 95 if ( empty( $this->id ) ) 95 96 $this->id = $wpdb->insert_id; 96 97 98 // If an existing activity item, prevent any changes to the content generating new @mention notifications. 99 else 100 add_filter( 'bp_activity_at_name_do_notifications', '__return_false' ); 101 97 102 do_action_ref_array( 'bp_activity_after_save', array( &$this ) ); 98 103 99 104 return true;