1function wpa66834_role_admin_body_class( $classes ) {
2 global $current_user;
3 foreach( $current_user->roles as $role )
4 $classes .= ' role-' . $role;
5 return trim( $classes );
6}
7add_filter( 'admin_body_class', 'wpa66834_role_admin_body_class' );
8