Skip to content

Commit

Permalink
Block Editor: Remove the .is-dark-theme body class from the admin h…
Browse files Browse the repository at this point in the history
…eader.

With the changes to dark theme support in WordPress/gutenberg#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.

git-svn-id: https://develop.svn.wordpress.org/trunk@50142 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Feb 2, 2021
1 parent 1f33c5b commit feb86cb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wp-admin/admin-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@
if ( $current_screen->is_block_editor() ) {
// Default to is-fullscreen-mode to avoid jumps in the UI.
$admin_body_class .= ' block-editor-page is-fullscreen-mode wp-embed-responsive';

if ( current_theme_supports( 'editor-styles' ) && current_theme_supports( 'dark-editor-style' ) ) {
$admin_body_class .= ' is-dark-theme';
}
}

$error_get_last = error_get_last();
Expand Down

0 comments on commit feb86cb

Please sign in to comment.