GC_Customize_Manager::_sanitize_header_textcolor()

最后更新于:2021-11-27 03:08:41

GC_Customize_Manager::_sanitize_header_textcolor( string$color)

Callback for validating the header_textcolor value.

参数

$color

(string) (Required)

响应

(mixed)

源文件

文件: gc-includes/class-gc-customize-manager.php

	public function _sanitize_header_textcolor( $color ) {
		if ( 'blank' === $color ) {
			return 'blank';
		}

		$color = sanitize_hex_color_no_hash( $color );
		if ( empty( $color ) ) {
			$color = get_theme_support( 'custom-header', 'default-text-color' );
		}

		return $color;
	}