joshuatz / joshuatz-wp-theme

Custom Wordpress Theme for Portfolio Site

Home Page:https://joshuatz.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

script_loader.php creates duplicate media aatributes

jessedmatlock opened this issue · comments

Is this script correct in creating a link tag with TWO media attributes?

The resulting stylesheet has: media='all' media="none" onload="if(media!='all')media='all'"

<link rel='stylesheet' id='bootstrap-css' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.3/css/bootstrap.min.css?ver=3.0.2' media='all' media="none" onload="if(media!='all')media='all'" /> <noscript><link rel='stylesheet' id='bootstrap-css' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.3/css/bootstrap.min.css?ver=3.0.2' media='all' />

Scratch that, although viewing the source shows both tags, inspecting the link within the head of the document shows:
<link rel="stylesheet" id="bootstrap-css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.3/css/bootstrap.min.css?ver=3.0.2" media="all" onload="if(media!='all')media='all'">