[wp-trac] [WordPress Trac] #48187: Missing admin color scheme causes incorrect body class

WordPress Trac noreply at wordpress.org
Mon Sep 30 19:49:02 UTC 2019


#48187: Missing admin color scheme causes incorrect body class
-----------------------------+-----------------------------
 Reporter:  johnjamesjacoby  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Administration   |    Version:
 Severity:  normal           |   Keywords:  2nd-opinion
  Focuses:                   |
-----------------------------+-----------------------------
 If you pick a non-core admin color scheme (one that is added via some
 available plugin) but later that color scheme is no longer available (by
 deactivating said plugin) the admin-area body class continues to reflect
 the now missing color scheme.

 To test:

 1. Install and activate [https://wordpress.org/plugins/admin-color-
 schemes/ this plugin] (or one like it)
 2. Change the color scheme in Your Profile to "80's Kid" (or any other
 non-core one)
 3. Deactivate the above plugin
 4. Open inspector in your web browser
 5. See that the incorrect color scheme class is added to the body element

 Ironically, the way WordPress admin CSS is coded, this does not appear to
 cause any obvious styling breakage, though I do consider this an
 unintended behavior that can still be corrected.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48187>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list