Skip to content

Commit f1448c0

Browse files
committed
cleaned up plugin
1 parent 9f8e0d8 commit f1448c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bbpress-add-member-usernames.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function add_username_to_forum_posts( $author_role, $r ) {
3636
$user_id = \bbp_get_reply_author_id( \bbp_get_reply_id( $r['reply_id'] ) );
3737
if ( $user_id ) {
3838
$user = get_user_by( 'id', $user_id );
39-
$author_role = '<span class="user-nicename">@' . $user->user_nicename . '</span>' . $author_role;
39+
$author_role = '<span class="user-nicename">@' . esc_html( $user->user_nicename ) . '</span>' . $author_role;
4040
}
4141
return $author_role;
4242
}

0 commit comments

Comments
 (0)