From dfc566203fee1665e2e9c9c9f7f6859d023ff83e Mon Sep 17 00:00:00 2001 From: Chris Montgomery Date: Tue, 6 Aug 2013 09:54:23 -0400 Subject: [PATCH] reduce specificity in activation assets rewrites Allows for easier customization of assets directory without needing to add new rewrite rules for each new directory. --- lib/rewrites.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/rewrites.php b/lib/rewrites.php index 25d6060..d6a1388 100644 --- a/lib/rewrites.php +++ b/lib/rewrites.php @@ -17,9 +17,7 @@ function roots_add_rewrites($content) { global $wp_rewrite; $roots_new_non_wp_rules = array( - 'assets/css/(.*)' => THEME_PATH . '/assets/css/$1', - 'assets/js/(.*)' => THEME_PATH . '/assets/js/$1', - 'assets/img/(.*)' => THEME_PATH . '/assets/img/$1', + 'assets/(.*)' => THEME_PATH . '/assets/$1', 'plugins/(.*)' => RELATIVE_PLUGIN_PATH . '/$1' ); $wp_rewrite->non_wp_rules = array_merge($wp_rewrite->non_wp_rules, $roots_new_non_wp_rules);