wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php:450Sanitizes a select input.
$inputstring$settingobjectstring public static function sanitize_select( $input, $setting ) { $input = sanitize_key( $input ); $choices = $setting->manager->get_control( $setting->id )->choices; return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); }Introduced in Twenty Twenty 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.