wp-includes/blocks/site-logo.php:130Overrides the custom logo with a site logo, if the option is set.
$custom_logostringstringfunction _override_custom_logo_theme_mod( $custom_logo ) { $site_logo = get_option( 'site_logo' ); return false === $site_logo ? $custom_logo : $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.