[Plugin: qTranslate] language tag in wp_enqueue_style() url
-
Hi, am working on a plugin that inserts both javascript and stylesheet in wp header. A user reported a problem: qTranslate adds the language tag to the stylesheet URL (breaking it) while the javascript URLs are left in tact.
This confuses me because both stylesheet and script are enqueued in the same way. A code snippet from my plugin:
// then register our version wp_enqueue_script('jquery.mousewheel', plugins_url(FANCYBOX_SUBDIR, __FILE__).'/fancybox/jquery.mousewheel-'.MOUSEWHEEL_VERSION.'.pack.js', array('jquery'), MOUSEWHEEL_VERSION); // register style wp_enqueue_style('easy-fancybox.css', plugins_url(FANCYBOX_SUBDIR, __FILE__).'/easy-fancybox.css.php', false, FANCYBOX_VERSION, 'screen');
How can it be that qTranslate inserts a language tag (like /en/ for english) into the stylesheet URL while the script URL is not changed?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: qTranslate] language tag in wp_enqueue_style() url’ is closed to new replies.