From e69ceeea1f134b67ddef7d3db87d9657bf47bb2a Mon Sep 17 00:00:00 2001 From: Damian Regan Date: Thu, 21 Feb 2013 16:57:10 +0000 Subject: [PATCH] comment --- lib/cleanup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cleanup.php b/lib/cleanup.php index 903412c..bc05bf5 100644 --- a/lib/cleanup.php +++ b/lib/cleanup.php @@ -124,9 +124,11 @@ add_filter('body_class', 'roots_body_class'); * @author Scott Walkinshaw */ function roots_root_relative_url($input) { + // fix for site_url != home_url() if(!is_admin()) { $input = str_replace(site_url(), "", $input); } + $output = preg_replace_callback( '!(https?://[^/|"]+)([^"]+)?!', create_function(