强制favicon刷新格式

I am having trouble fully implementing solution to question How do I force a favicon refresh?.

Current header.php is not refreshing the favicon as intended:

<link rel="shortcut icon" type="image/x-icon" href="...favicon.ico?v=2" />
<?php favicons(); ?>

I do not understand the role of the second line. I have found that adding a character to the end of the second line forces the favicon refresh (good!) but also displays a new line of text—whatever * is in below example—at the very top of the website (not good):

<link rel="shortcut icon" type="image/x-icon" href="...favicon.ico?v=2" />
<?php favicons(); ?>*

What is the role of the second line? How should it be formatted to force the favicon refresh without displaying a new line of text at the top of the website?

Thank you for your consideration, please let me know what other context I can provide.