default ); } /*radio button sanitization*/ function affiliate_store_sanitize_choices( $input, $setting ) { global $wp_customize; $control = $wp_customize->get_control( $setting->id ); if ( array_key_exists( $input, $control->choices ) ) { return $input; } else { return $setting->default; } } if ( ! function_exists( 'affiliate_store_sanitize_integer' ) ) { function affiliate_store_sanitize_integer( $input ) { return (int) $input; } }