WordPress Version: 5.1
/**
* Displays a custom logo, linked to home unless the theme supports removing the link on the home page.
*
* @since 4.5.0
*
* @param int $blog_id Optional. ID of the blog in question. Default is the ID of the current blog.
*/
function the_custom_logo($blog_id = 0)
{
echo get_custom_logo($blog_id);
}