We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f8e0d8 commit f1448c0Copy full SHA for f1448c0
bbpress-add-member-usernames.php
@@ -36,7 +36,7 @@ function add_username_to_forum_posts( $author_role, $r ) {
36
$user_id = \bbp_get_reply_author_id( \bbp_get_reply_id( $r['reply_id'] ) );
37
if ( $user_id ) {
38
$user = get_user_by( 'id', $user_id );
39
- $author_role = '<span class="user-nicename">@' . $user->user_nicename . '</span>' . $author_role;
+ $author_role = '<span class="user-nicename">@' . esc_html( $user->user_nicename ) . '</span>' . $author_role;
40
}
41
return $author_role;
42
0 commit comments