Sfoglia il codice sorgente

Comment about wpcom color annotations conditional.

Jeffrey Ong 5 anni fa
parent
commit
92b2863c0f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      seedlet/functions.php

+ 1 - 1
seedlet/functions.php

@@ -397,7 +397,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 ( 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.
 	require get_template_directory() . '/classes/class-seedlet-custom-colors.php';
 	require get_template_directory() . '/classes/class-seedlet-custom-colors.php';
 }
 }