Skip to content

Commit

Permalink
correct logic in roots_enable_root_relative_urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanstanley authored and retlehs committed Mar 5, 2013
1 parent 86fd8e8 commit 33a9c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cleanup.php
Expand Up @@ -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()) {
Expand Down

0 comments on commit 33a9c7c

Please sign in to comment.