Fix author comment badge
This commit is contained in:
parent
86a97e71b1
commit
09d64d5122
@ -192,7 +192,7 @@ if ( ! function_exists( 'fictioneer_get_comment_badge' ) ) {
|
||||
$role_slug = $user->roles[0] ?? '';
|
||||
$role = $wp_roles->roles[ $role_slug ];
|
||||
|
||||
if ( ! empty( $role_slug ) ) {
|
||||
if ( ! empty( $role_slug ) && ! in_array( $role_slug, ['author', 'administrator', 'moderator'] ) ) {
|
||||
$badge = $role['name'];
|
||||
$badge_class = "is-{$role_slug}";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user