Make WordPress Core

Opened 5 years ago

#48187 new defect (bug)

Missing admin color scheme causes incorrect body class

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: 2nd-opinion
Focuses: Cc:


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 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.

Attachments (1)

Screen Shot 2019-09-30 at 2.44.45 PM.png (187.3 KB) - added by johnjamesjacoby 5 years ago.
See the body class, and also see the fallback to "Default" in my profile

Download all attachments as: .zip

Change History (1)

5 years ago

See the body class, and also see the fallback to "Default" in my profile

Note: See TracTickets for help on using tickets.