Ver Fonte

Merge pull request #2392 from Automattic/fix/seedlet-color-manager-loading

Seedlet: fix two custom color panels loading on wpcom
Kjell Reigstad há 4 anos atrás
pai
commit
c1c74ce6f1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      seedlet/functions.php

+ 1 - 1
seedlet/functions.php

@@ -416,7 +416,7 @@ require get_template_directory() . '/classes/class-seedlet-svg-icons.php';
 /**
 /**
  * Custom colors class.
  * Custom colors class.
  */
  */
-if ( empty( get_theme_mod( 'colors_manager' ) ) ) { // If the theme is on wpcom, we bypass the theme's built in custom colors, because wpcom uses a different custom color implementation.
+if ( ! class_exists( 'Colors_Manager' ) ) { // Check for presence of wpcom color manager to avoid duplicate color customization functionality.
 	require get_template_directory() . '/classes/class-seedlet-custom-colors.php';
 	require get_template_directory() . '/classes/class-seedlet-custom-colors.php';
 }
 }