WordPress.org

Make WordPress Core

Opened 16 months ago

Closed 3 weeks ago

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

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 16 months ago.

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
16 months ago

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

#2 @DrewAPicture
16 months ago

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

#3 @jignesh.nakrani
16 months 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 weeks ago

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

#5 @netweb
3 weeks ago

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