瀏覽代碼

Remove 'dark-editor-style' theme support

This fixes the issue where some styles (such as the image caption) have
"dark mode" support added to them.  This is fine if a user has "dark
mode" enabled for their system.  But in the default mode it isn't a
"dark" style and therefore those stylistic behaviors introduce problems.

I did not notice any negative behavior due to this being removed.

This behavior seems to have been introduced due to recent chagnes in
Gutenberg that introduce additional editor styles for themes that
express support for 'dark-editor-style'.
Jason Crist 4 年之前
父節點
當前提交
11166eb771
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      spearhead/functions.php

+ 0 - 1
spearhead/functions.php

@@ -21,7 +21,6 @@ if ( ! function_exists( 'spearhead_setup' ) ) :
 
 		// Add support for editor styles.
 		add_theme_support( 'editor-styles' );
-		add_theme_support( 'dark-editor-style' );
 
 		// Enqueue editor styles.
 		add_editor_style(