manager->get_control( $setting->id )->choices; return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); } endif; if ( ! function_exists( 'bizbuzz_sanitize_positive_number' ) ) : /** * Sanitize positive number without fraction. * * @param int $input Number. * @param Customizer_Obj $setting WP_Customize_Setting instance. * @return int Positive Number. */ function bizbuzz_sanitize_positive_number( $input, $setting ) { $input = absint( $input ); // If the input is an absolute integer, return it. // otherwise, return the default. return ( $input ? $input : $setting->default ); } endif;