do_favicon

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

WordPress Version: 6.1

/**
 * Displays the favicon.ico file content.
 *
 * @since 5.4.0
 */
function do_favicon()
{
    /**
     * Fires when serving the favicon.ico file.
     *
     * @since 5.4.0
     */
    do_action('do_faviconico');
    wp_redirect(get_site_icon_url(32, includes_url('images/w-logo-blue-white-bg.png')));
    exit;
}

WordPress Version: .10

/**
 * Display the favicon.ico file content.
 *
 * @since 5.4.0
 */
function do_favicon()
{
    /**
     * Fires when serving the favicon.ico file.
     *
     * @since 5.4.0
     */
    do_action('do_faviconico');
    wp_redirect(get_site_icon_url(32, includes_url('images/w-logo-blue-white-bg.png')));
    exit;
}

WordPress Version: 5.4

/**
 * Display the favicon.ico file content.
 *
 * @since 5.4.0
 */
function do_favicon()
{
    /**
     * Fires when serving the favicon.ico file.
     *
     * @since 5.4.0
     */
    do_action('do_faviconico');
    wp_redirect(get_site_icon_url(32, admin_url('images/w-logo-blue.png')));
    exit;
}