Kaynağa Gözat

Merge pull request #2307 from Automattic/update/remove-generated-color-palettes

Varia: Disable automatically generated color palettes.
Allan Cole 5 yıl önce
ebeveyn
işleme
a996a763e0
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      varia/inc/wpcom.php

+ 5 - 0
varia/inc/wpcom.php

@@ -15,6 +15,11 @@
 function varia_wpcom_setup() {
 function varia_wpcom_setup() {
 	global $themecolors;
 	global $themecolors;
 
 
+	// Disable automatically generated color palettes.
+	add_theme_support( 'wpcom-colors', array(
+	        'only-featured-palettes' => true,
+	) );	
+	
 	// Set theme colors for third party services.
 	// Set theme colors for third party services.
 	if ( ! isset( $themecolors ) ) {
 	if ( ! isset( $themecolors ) ) {
 		$themecolors = array(
 		$themecolors = array(