the_custom_logo

The timeline below displays how wordpress function the_custom_logo has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

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);
}

WordPress Version: 5.5

/**
 * Displays a custom logo, linked to home when on another 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);
}

WordPress Version: 4.5

/**
 * Displays a custom logo, linked to home.
 *
 * @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);
}