Browse Source

Add comment about theme_mod_bg_color check.

Jeffrey Ong 5 years ago
parent
commit
d5a56dcf6f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      seedlet/classes/class-seedlet-custom-colors.php

+ 2 - 0
seedlet/classes/class-seedlet-custom-colors.php

@@ -212,6 +212,8 @@ class Seedlet_Custom_Colors {
 			$theme_css = ':root {';
 		}
 
+		// Check to see if a custom background color has been set that is needed for our color calculation
+		// If this check isn't present, the color calculation generates a warning that an invalid color has been supplied
 		$theme_mod_bg_color = empty( get_theme_mod( "seedlet_--global--color-background" ) ) ? '#FFFFFF' : get_theme_mod( "seedlet_--global--color-background" );
 
 		foreach ( $this->seedlet_custom_color_variables as $variable ) {