<div dir="ltr">Hello!<div><br></div><div>Thank you for your answers. Here's what's being done to <link> tag:</div><div><div><br></div><div>/**</div><div> * Clean up output of stylesheet <link> tags</div>
<div> */</div><div>function sme_clean_style($input) {</div><div> preg_match_all("!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!", $input, $matches);</div>
<div> // Only display media if it is meaningful</div><div> $media = $matches[3][0] !== '' && $matches[3][0] !== 'all' ? ' media="' . $matches[3][0] . '"' : '';</div>
<div> // Add a 4 spaces indent before <link...</div><div> return ' <link rel="stylesheet" href="' . $matches[2][0] . '"' . $media . '>' . "\n";</div>
<div>}</div><div>add_filter('style_loader_tag', 'sme_clean_style');</div></div><div><br></div><div><br></div><div>Best regards,</div><div>Ola Laczek</div></div>