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()) {