site_icon_url

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

WordPress Version: 4.4

/**
 * Displays the Site Icon URL.
 *
 * @since 4.3.0
 *
 * @param int    $size    Optional. Size of the site icon. Default 512 (pixels).
 * @param string $url     Optional. Fallback url if no site icon is found. Default empty.
 * @param int    $blog_id Optional. ID of the blog to get the site icon for. Default current blog.
 */
function site_icon_url($size = 512, $url = '', $blog_id = 0)
{
    echo esc_url(get_site_icon_url($size, $url, $blog_id));
}

WordPress Version: 4.3

/**
 * Displays the Site Icon URL.
 *
 * @param  int    $size    Size of the site icon.
 * @param  string $url     Fallback url if no site icon is found.
 * @param  int    $blog_id Id of the blog to get the site icon for.
 */
function site_icon_url($size = 512, $url = '', $blog_id = 0)
{
    echo esc_url(get_site_icon_url($size, $url, $blog_id));
}