correct logic in roots_enable_root_relative_urls
This commit is contained in:
committed by
Ben Word
parent
86fd8e8d43
commit
33a9c7cd50
@@ -154,7 +154,7 @@ function roots_root_relative_url($input) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function roots_enable_root_relative_urls() {
|
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()) {
|
if (roots_enable_root_relative_urls()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user