Last active
March 11, 2016 00:33
-
-
Save matheuswd/3c7cf3231ab9820c6cfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function isMultisite() { | |
if (function_exists('is_multisite')) | |
return is_multisite(); | |
return false; | |
} | |
function isMainSite() { | |
if (!function_exists('is_main_site' ) || !$this->isMultisite()) | |
return true; | |
return is_main_site(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment