/**
  * Ensures that any hex color is properly hashed.
  * Otherwise, returns value unaltered.
  *
  * This function is borrowed from the class_wp_customize_manager.php
  * file in WordPress core.
  *
  * @access public
  * @since  8.1
  * @static
  *
  * @param  string $color
  *
  * @return string
  */
 public static function maybeHashHEXColor($color)
 {
     if ($unhashed = cnSanitize::hexColorNoHash($color)) {
         return '#' . $unhashed;
     }
     return $color;
 }