From feb86cb25fb99be4dfcdafe25ce12a79b6b56a23 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 2 Feb 2021 13:03:37 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@50142 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/admin-header.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wp-admin/admin-header.php b/src/wp-admin/admin-header.php index cd068f1f9b..d2b5fda09e 100644 --- a/src/wp-admin/admin-header.php +++ b/src/wp-admin/admin-header.php @@ -192,10 +192,6 @@ $admin_body_class .= ' no-customize-support no-svg'; 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();