correct logic in roots_enable_root_relative_urls

This commit is contained in:
Jonathan Stanley
2013-03-04 17:08:11 -07:00
committed by Ben Word
parent 86fd8e8d43
commit 33a9c7cd50

View File

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