Make WordPress Core

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#37434 closed enhancement (worksforme)

Add user role(s) to admin body classes

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

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

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
10 years ago

  • Component General → Users
  • Focuses administration added
  • Type feature request → enhancement

#2 @DrewAPicture
10 years ago

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

#3 @jignesh.nakrani
10 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
9 years ago

  • Resolution → worksforme
  • Status new → closed

#5 @netweb
9 years ago

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