From a3801f7a2a0ef6309313b111b55ca4a575be33ea Mon Sep 17 00:00:00 2001 From: Ben Word Date: Wed, 10 Apr 2013 10:08:38 -0500 Subject: [PATCH] Remove tabs that were added during contributions --- lib/cleanup.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/cleanup.php b/lib/cleanup.php index 708bf8e..069b896 100644 --- a/lib/cleanup.php +++ b/lib/cleanup.php @@ -138,9 +138,9 @@ 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() && site_url() != home_url() && stristr($input, 'wp-includes') === false) { - $input = str_replace(site_url(), "", $input); + // Fix for site_url() != home_url() + if (!is_admin() && site_url() != home_url() && stristr($input, 'wp-includes') === false) { + $input = str_replace(site_url(), '', $input); } $output = preg_replace_callback( @@ -158,10 +158,10 @@ function roots_root_relative_url($input) { ); // detect and correct for subdir installs - if($subdir = parse_url(home_url(), PHP_URL_PATH)) { - if(substr($output, 0, strlen($subdir)) == (substr($output, strlen($subdir), strlen($subdir)))) { - $output = substr($output, strlen($subdir)); - } + if ($subdir = parse_url(home_url(), PHP_URL_PATH)) { + if (substr($output, 0, strlen($subdir)) == (substr($output, strlen($subdir), strlen($subdir)))) { + $output = substr($output, strlen($subdir)); + } } return $output; @@ -191,8 +191,8 @@ if (roots_enable_root_relative_urls()) { 'year_link', 'tag_link', 'the_author_posts_link', - 'script_loader_src', - 'style_loader_src' + 'script_loader_src', + 'style_loader_src' ); add_filters($root_rel_filters, 'roots_root_relative_url');