From 7bf90296e5d985ef7366195127d8e9c4f701c943 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 28 Aug 2011 13:48:12 -0600 Subject: [PATCH] fixes #125 - http://wordpress.stackexchange.com/questions/12863/check-if-were-on-the-wp-login-page --- inc/roots-cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/roots-cleanup.php b/inc/roots-cleanup.php index a304bae..7459c73 100644 --- a/inc/roots-cleanup.php +++ b/inc/roots-cleanup.php @@ -55,7 +55,7 @@ function roots_fix_duplicate_subfolder_urls($input) { } $roots_options = roots_get_theme_options(); -if (!is_admin() && $roots_options['root_relative_urls']) { +if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')) && $roots_options['root_relative_urls']) { add_filter('bloginfo_url', 'roots_root_relative_url'); add_filter('theme_root_uri', 'roots_root_relative_url'); add_filter('stylesheet_directory_uri', 'roots_root_relative_url');