Ref #525 - Move css/, img/, and js/ into assets/
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user