Don't add a class for comment authors who are members of the current site.
Reverts [32245] and [31518]. We'll keep the whitespace and comment clarification, though. see #24054. git-svn-id: https://develop.svn.wordpress.org/trunk@32259 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
925682e2d1
commit
3fb766782d
@ -424,12 +424,6 @@ function get_comment_class( $class = '', $comment_id = null, $post_id = null ) {
|
||||
if ( $comment->user_id > 0 && $user = get_userdata( $comment->user_id ) ) {
|
||||
$classes[] = 'byuser';
|
||||
$classes[] = 'comment-author-' . sanitize_html_class( $user->user_nicename, $comment->user_id );
|
||||
|
||||
// If a comment author is also a member of the site (multisite).
|
||||
if ( is_user_member_of_blog( $comment->user_id ) ) {
|
||||
$classes[] = 'bysiteuser';
|
||||
}
|
||||
|
||||
// For comment authors who are the author of the post
|
||||
if ( $post = get_post($post_id) ) {
|
||||
if ( $comment->user_id === $post->post_author ) {
|
||||
|
Loading…
Reference in New Issue
Block a user