Make WordPress Core

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#37434 closed enhancement (worksforme)

Add user role(s) to admin body classes

Reported by: tazotodua Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch
Focuses: administration Cc:
PR Number:


it will be good that i.e. "editor" or "subscriber" was in the list of classes of <body> in dashboard...
then we could easily use Javascripts and CSS styling according to that class.

Attachments (1)

37434.patch (1.2 KB) - added by jignesh.nakrani 3 years ago.

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Users
  • Focuses administration added
  • Type changed from feature request to enhancement

#2 @DrewAPicture
3 years ago

  • Summary changed from add USER_LEVEL class into <body> of DASHBOARD to Add user role(s) to admin body classes

#3 @jignesh.nakrani
3 years ago

  • Keywords has-patch added

Added class for User role in admin dashboard <body> classes. Used wp-role- prefix for role name. 37434.patch

#4 @tazotodua
2 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

#5 @netweb
2 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.