public_html/wp-content/plugins/lightweight-social-icons/lightweight-social-icons.php
/**
 * Function to sanitize the hex values
 * @since 0.1
 */
Function to sanitize the hex values
@since 0.1
Function to sanitize the hex values @since 0 . 1
function lsi_sanitize_hex_color( $color ) {
	if ( '' === $color )
		return '';
	if ( preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) )
		return $color;
	return null;
}
function lsi_sanitize_hex_color ( $ color ) { if ( '' === $ color ) return '' ; if ( preg_match ( '|^#([A-Fa-f0-9]{3}){1,2}$|' , $ color ) ) return $ color ; return null ; }
Function to sanitize the hex values
 @since 0.1
Function to sanitize the hex values @since 0 . 1
// 3 or 6 hex digits, or the empty string.