Make WordPress Core

Opened 4 years ago

Closed 3 years ago

Last modified 3 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:


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 4 years ago.

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
4 years ago

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

#2 @DrewAPicture
4 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
4 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
3 years ago

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

#5 @netweb
3 years ago

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