WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 4 weeks ago

#24054 closed enhancement

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

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

Description

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. 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 contributors, authors, editors, and administrators but not style contributors or something like that and not subscribers.

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 (0)

Note: See TracTickets for help on using tickets.