toCSS( \'hex\' )' ); return Kirki_Color::sanitize_hex( $color ); } } if ( ! function_exists( 'kirki_get_rgb' ) ) { function kirki_get_rgb( $hex, $implode = false ) { _deprecated_function( __FUNCTION__, '1.0.0', 'ariColor::newColor( $color )->toCSS( \'rgb\' )' ); return Kirki_Color::get_rgb( $hex, $implode ); } } if ( ! function_exists( 'kirki_get_rgba' ) ) { function kirki_get_rgba( $hex = '#fff', $opacity = 100 ) { _deprecated_function( __FUNCTION__, '1.0.0', 'ariColor::newColor( $color )->toCSS( \'rgba\' )' ); return Kirki_Color::get_rgba( $hex, $opacity ); } } if ( ! function_exists( 'kirki_get_brightness' ) ) { function kirki_get_brightness( $hex ) { _deprecated_function( __FUNCTION__, '1.0.0', 'ariColor::newColor( $color )->lightness' ); return Kirki_Color::get_brightness( $hex ); } } if ( ! function_exists( 'Kirki' ) ) { function Kirki() { return kirki(); } } if ( ! class_exists( 'Kirki_Active_Callback' ) ) { // Removed in https://github.com/aristath/kirki/pull/1682/files class Kirki_Active_Callback { public static function evaluate() { _deprecated_function( __METHOD__, '3.0.17', null ); return true; } private static function evaluate_requirement() { _deprecated_function( __METHOD__, '3.0.17', null ); return true; } public static function compare( $value1, $value2, $operator ) { _deprecated_function( __METHOD__, '3.0.17', 'Kirki_Helper::compare_values' ); return Kirki_Helper::compare_values( $value1, $value2, $operator ); } } }