wp-includes/blocks/site-logo.php:167Deletes the site_logo when the custom_logo theme mod is removed.
$old_valuearray$valuearrayfunction _delete_site_logo_on_remove_custom_logo( $old_value, $value ) { global $_ignore_site_logo_changes; if ( $_ignore_site_logo_changes ) { return; } // If the custom_logo is being unset, it's being removed from theme mods. if ( isset( $old_value['custom_logo'] ) && ! isset( $value['custom_logo'] ) ) { delete_option( 'site_logo' ); }}Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/blocks/site-logo.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.