From 78031a9ffe0587ed6eccc84f28a62dcc16b3907e Mon Sep 17 00:00:00 2001 From: Damian Regan Date: Thu, 21 Feb 2013 18:06:34 +0000 Subject: [PATCH] added conditional --- lib/cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cleanup.php b/lib/cleanup.php index bc05bf5..a9f17c4 100644 --- a/lib/cleanup.php +++ b/lib/cleanup.php @@ -125,7 +125,7 @@ add_filter('body_class', 'roots_body_class'); */ function roots_root_relative_url($input) { // fix for site_url != home_url() - if(!is_admin()) { + if(!is_admin() && site_url() != home_url()) { $input = str_replace(site_url(), "", $input); }