id="li-comment-">
comment_author ) ) {
if( !empty( $comment->user_id ) ) {
$user = get_userdata( $comment->user_id );
$author = $user->user_login;
} else {
$author = __( 'Anonymous', 'bromine' );
}
} else {
$author = $comment->comment_author;
}
// If the user provided more than a first name, use only first name
if( strpos( $author, ' ' ) ) {
$author = substr( $author, 0, strpos( $author, ' ' ) );
}
// Replace Reply Link with "Reply to "
$reply = $args['reply_text'];
$text = '';
$link = str_replace( $reply, $text . $author, $link );
return $link;
}