Changeset 2287 for trunk/bp-activity/bp-activity-filters.php
- Timestamp:
- 01/10/2010 08:42:42 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-filters.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-filters.php
r2270 r2287 74 74 75 75 foreach( (array)$usernames as $username ) { 76 if ( ! username_exists( $username ) )76 if ( !$user_id = username_exists( $username ) ) 77 77 continue; 78 79 /* Increase the number of new @ mentions for the user */ 80 $new_mention_count = (int)get_usermeta( $user_id, 'bp_new_mention_count' ); 81 update_usermeta( $user_id, 'bp_new_mention_count', $new_mention_count + 1 ); 78 82 79 83 $content = str_replace( "@$username", "<a href='" . bp_core_get_user_domain( bp_core_get_userid( $username ) ) . "' rel='nofollow'>@$username</a>", $content ); … … 82 86 return $content; 83 87 } 84 add_filter( ' xprofile_activity_new_update_content', 'bp_activity_at_name_filter' );88 add_filter( 'bp_activity_new_update_content', 'bp_activity_at_name_filter' ); 85 89 add_filter( 'groups_activity_new_update_content', 'bp_activity_at_name_filter' ); 86 90 add_filter( 'bp_activity_comment_content', 'bp_activity_at_name_filter' );
Note: See TracChangeset
for help on using the changeset viewer.