Make WordPress Core

Changeset 50142


Ignore:
Timestamp:
02/02/2021 01:03:37 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Block Editor: Remove the .is-dark-theme body class from the admin header.

With the changes to dark theme support in https://github.com/WordPress/gutenberg/pull/28233 to check the real background color of the theme, this no longer serves any purpose.

Follow-up to [44133].

Props scruffian, sabernhardt.
Fixes #52385.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-header.php

    r49384 r50142  
    193193    // Default to is-fullscreen-mode to avoid jumps in the UI.
    194194    $admin_body_class .= ' block-editor-page is-fullscreen-mode wp-embed-responsive';
    195 
    196     if ( current_theme_supports( 'editor-styles' ) && current_theme_supports( 'dark-editor-style' ) ) {
    197         $admin_body_class .= ' is-dark-theme';
    198     }
    199195}
    200196
Note: See TracChangeset for help on using the changeset viewer.