Changeset 10958 for trunk/src/bp-activity/bp-activity-filters.php
- Timestamp:
- 07/24/2016 01:08:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-filters.php
r10860 r10958 279 279 // Linkify the mentions with the username. 280 280 foreach ( (array) $usernames as $user_id => $username ) { 281 $content = preg_replace( '/(@' . $username . '\b)/', "<a href='" . bp_core_get_user_domain( $user_id ) . "' rel='nofollow'>@$username</a>", $content );281 $content = preg_replace( '/(@' . $username . '\b)/', "<a class='bp-suggestions-mention' href='" . bp_core_get_user_domain( $user_id ) . "' rel='nofollow'>@$username</a>", $content ); 282 282 } 283 283 … … 320 320 // Replace @mention text with userlinks. 321 321 foreach( (array) $usernames as $user_id => $username ) { 322 $activity->content = preg_replace( '/(@' . $username . '\b)/', "<a href='" . bp_core_get_user_domain( $user_id ) . "' rel='nofollow'>@$username</a>", $activity->content );322 $activity->content = preg_replace( '/(@' . $username . '\b)/', "<a class='bp-suggestions-mention' href='" . bp_core_get_user_domain( $user_id ) . "' rel='nofollow'>@$username</a>", $activity->content ); 323 323 } 324 324
Note: See TracChangeset
for help on using the changeset viewer.