retlehs/roots — Issue #293: Rewrite killing other plugins
Author: zslabs
Created: 2012-02-22 15:57:57+00:00
State: open

Hi,
The new re-write for script URLs for example seems to be killing some plugins - for example, the output looks like:

``

Also - why wouldn't this be hooking into the proper re-write to not only be relative, but also use the /plugins URL as it did in other versions? `/base is the root of the site -- in a sub-directory and /base is also the name of the theme folder`

Also, when adding in new scripts the standard WP way, this doesn't work properly:

function roots_custom_scripts() {
wp_register_script('roots_script_less', THEME_PATH . '/js/less.min.js', false, null, false);
wp_enqueue_script('roots_script_less');
}

add_action('wp_print_scripts', 'roots_custom_scripts');

It spits out `` which is missing a `/` and also is not rewritten. If we are trying to take the approach of not touching the core roots files, then what's the best way to add JS files? Maybe a quick WIKI addition would help, but something seems a bit off with the plugin rewrite for JS files in general unless I'm missing something. Thanks.