Make WordPress Core

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#37434 closed enhancement (worksforme)

Add user role(s) to admin body classes

Reported by: tazotodua's profile tazotodua Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch
Focuses: administration Cc:

Description

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

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
8 years ago

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

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

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

#5 @netweb
7 years ago

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