Ref #525 - Move css/, img/, and js/ into assets/

This commit is contained in:
Ben Word
2012-08-20 19:28:36 -05:00
parent 5c777f361b
commit 611d4d9f2f
56 changed files with 22 additions and 20 deletions

View File

@@ -33,10 +33,10 @@ if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') || stristr($_SERVER['SERVER_S
function roots_add_rewrites($content) {
global $wp_rewrite;
$roots_new_non_wp_rules = array(
'css/(.*)' => THEME_PATH . '/css/$1',
'js/(.*)' => THEME_PATH . '/js/$1',
'img/(.*)' => THEME_PATH . '/img/$1',
'plugins/(.*)' => RELATIVE_PLUGIN_PATH . '/$1'
'assets/css/(.*)' => THEME_PATH . '/assets/css/$1',
'assets/js/(.*)' => THEME_PATH . '/assets/js/$1',
'assets/img/(.*)' => THEME_PATH . '/assets/img/$1',
'assets/plugins/(.*)' => RELATIVE_PLUGIN_PATH . '/$1'
);
$wp_rewrite->non_wp_rules = array_merge($wp_rewrite->non_wp_rules, $roots_new_non_wp_rules);
return $content;