I have the exact same files (except for wp-config) running on a local server and a test server, and in my functions.php I have this:
function len_scripts() {
if (!is_admin()):
wp_enqueue_script('jquery');
wp_enqueue_script('thickbox');
endif;
}
add_action('wp_print_scripts', 'len_scripts');
On my localhost, everything works fine and all files are happily working. But on the test server, somehow, thickbox never gets called, i don't get any errors on the console and Firebug Network tab simply doesn't know it was supposed to be calling that file.
thickbox.css gets called, jquery.js also. thickbox.js doesn't.
Any ideas why this might be?
EDIT:
len_scripts() is called on wp_print_scripts, so no big deal here - there are other enqueue functions that i left out, and they are all working as expected.
Firebug console does not throw any errors, in fact, it doesn't recognize thickbox.js at all, like if the function calling it was never there. It doesnt appear in the console, the DOM, or the Network tab. No mention, not even 404 (but the file is indeed there).
In my final markup i get the script tag for jquery, then the script tag for other .js files, but never for thickbox. I do get a link tag for thickbox.css though, along with my other .css tags.