How do I use wp_enqueue_script so that I get protocol neutral URLs? Here is how I'm currently using it:
<?php wp_enqueue_script('name', get_bloginfo('template_directory'). '/js/name.pack.js'); ?>
I saw that home_url()
is protocol aware so I figured theme_url()
would be also but I'm getting the error below when I use it.
Call to undefined function theme_url()