wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php:463Sanitize boolean for checkbox.
$checkedboolbool public static function sanitize_checkbox( $checked ) { return ( ( isset( $checked ) && true === $checked ) ? true : false ); }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.