Changeset 4736 for trunk/includes/core/functions.php
- Timestamp:
- 01/29/2013 07:30:27 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/functions.php
r4672 r4736 328 328 329 329 // Replace name in content 330 $content = preg_replace( '/(@' . $username . '\b)/', "<a href='" . bbp_get_user_profile_url( $user->ID ) . "' rel='nofollow' class='bbp-mention-link {$username}'>@{$username}</a>", $content );330 $content = preg_replace( '/(@' . $username . '\b)/', sprintf( '<a href="%1$s" rel="nofollow" class="bbp-mention-link">@%2$s</a>', bbp_get_user_profile_url( $user->ID ), $username ), $content ); 331 331 } 332 332
Note: See TracChangeset
for help on using the changeset viewer.