I'm dealing with a rather hackish implementation, where header.php
has this line: include_once "tracking.php";
. Inside tracking.php
, there are these lines:
<script type="text/javascript" src="/wp-content/themes/themename/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/wp-content/themes/themename/js/jquery.cookie.js"></script>
However, as long as the paths to those .js files are correct, they don't get printed in the page's head. If I introduce a typo so that the path is incorrect, then they do get printed!
I realize this is not an optimal way of including these files. However, does anyone have an idea as to why they aren't being printed if the path used is correct?