Skip to content

Commit

Permalink
Correct username display style
Browse files Browse the repository at this point in the history
Fixes #24161
  • Loading branch information
atrol committed Mar 27, 2018
1 parent dec1d77 commit 8a7a6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/prepare_api.php
Expand Up @@ -82,10 +82,10 @@ function prepare_user_name( $p_user_id ) {
$t_username = string_display_line( $t_username );

if( user_exists( $p_user_id ) && user_get_field( $p_user_id, 'enabled' ) ) {
return '<a class="user"' . $t_tooltip . ' href="' . string_sanitize_url( 'view_user_page.php?id=' . $p_user_id, true ) . '">' . $t_username . '</a>';
return '<a ' . $t_tooltip . ' href="' . string_sanitize_url( 'view_user_page.php?id=' . $p_user_id, true ) . '">' . $t_username . '</a>';
}

return '<del class="user"' . $t_tooltip . '>' . $t_username . '</del>';
return '<del ' . $t_tooltip . '>' . $t_username . '</del>';
}

/**
Expand Down

0 comments on commit 8a7a6e6

Please sign in to comment.