Make WordPress Core

Opened 5 years ago

Last modified 3 years ago

#24054 closed enhancement

(get_)comment_class() should include a is_user_member_of_blog() class — at Version 1

Reported by: Viper007Bond Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5.1
Component: Comments Keywords: has-patch revert
Focuses: multisite Cc:

Description (last modified by Viper007Bond)

On multi-site, there's no way to style comments that are members of the site. You can either style the post author or all registered users (who may not have access to the site's admin area). Example use case would be a multi-author site where you want comments from all authors highlighted.

I think it'd also be cool to include what role they are so that you could style say all authors, editors, and administrators but not style contributors or something like that.

I'm not sure if this would an information exposure issue though (does it matter if it is known what role a user is or that they are a member of the site?).

Change History (3)

#1 @Viper007Bond
5 years ago

  • Description modified (diff)

5 years ago

Adds both "comment-author-is-site-member" and "comment-author-role-ROLE" classes

5 years ago

Adds only "comment-author-is-site-member" class incase we don't want to expose roles

Note: See TracTickets for help on using tickets.