From 00066ee0dd49e9f0acc0be412adcced129d7899d Mon Sep 17 00:00:00 2001 From: Mathias Geat Date: Wed, 14 Mar 2012 16:43:28 +0100 Subject: [PATCH] fix compatiblity issues with other plugins which add rewrite rules --- inc/roots-htaccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/roots-htaccess.php b/inc/roots-htaccess.php index 1602113..f408dbc 100644 --- a/inc/roots-htaccess.php +++ b/inc/roots-htaccess.php @@ -29,7 +29,7 @@ if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) { 'img/(.*)' => THEME_PATH . '/img/$1', 'plugins/(.*)' => RELATIVE_PLUGIN_PATH . '/$1' ); - $wp_rewrite->non_wp_rules = $roots_new_non_wp_rules; + $wp_rewrite->non_wp_rules = array_merge($wp_rewrite->non_wp_rules, $roots_new_non_wp_rules); return $content; }