public_html/wp-content/themes/LocalTwo/core/customizer/includes/class-kirki-fonts.php
/**
	 * Sanitize a font choice.
	 *
	 * @param  string    $value    The font choice.
	 * @return string              The sanitized font choice.
	 */
Sanitize a font choice.
@param  string    $value    The font choice.
@return string              The sanitized font choice.
Sanitize a font choice . @param string $value The font choice . @return string The sanitized font choice .
public static function sanitize_font_choice( $value ) {
		if ( is_int( $value ) ) {
			return '';
		} else if ( array_key_exists( $value, self::get_font_choices() ) ) {
			return $value;
		} else {
			return '';
		}
	}
public static function sanitize_font_choice ( $ value ) { if ( is_int ( $ value ) ) { return '' ; } else if ( array_key_exists ( $ value , self :: get_font_choices ( ) ) ) { return $ value ; } else { return '' ; } }
Sanitize a font choice.
Sanitize a font choice .
// The array key is an integer, so the chosen option is a heading, not a real choice