Permalink
Browse files

correct logic in roots_enable_root_relative_urls

  • Loading branch information...
1 parent 86fd8e8 commit 33a9c7cd50eb545e8407cbb0c4369769d2048960 @jonathanstanley jonathanstanley committed with retlehs Mar 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cleanup.php
View
@@ -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()) {

0 comments on commit 33a9c7c

Please sign in to comment.