wp-content/themes/twentynineteen/inc/customizer.php:146Sanitize custom color choice.
$choicestringstringfunction twentynineteen_sanitize_color_option( $choice ) { $valid = array( 'default', 'custom', ); if ( in_array( $choice, $valid, true ) ) { return $choice; } return 'default';}Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentynineteen/inc/customizer.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.