From 33a9c7cd50eb545e8407cbb0c4369769d2048960 Mon Sep 17 00:00:00 2001 From: Jonathan Stanley Date: Mon, 4 Mar 2013 17:08:11 -0700 Subject: [PATCH] correct logic in roots_enable_root_relative_urls --- lib/cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cleanup.php b/lib/cleanup.php index 5c36e3e..eee2d6e 100644 --- a/lib/cleanup.php +++ b/lib/cleanup.php @@ -154,7 +154,7 @@ function roots_root_relative_url($input) { } function roots_enable_root_relative_urls() { - return !(is_admin() && in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) && current_theme_supports('root-relative-urls'); + return !(is_admin() || in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) && current_theme_supports('root-relative-urls'); } if (roots_enable_root_relative_urls()) {