Simplify logic in is_multisite().

git-svn-id: https://develop.svn.wordpress.org/trunk@14036 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-04-08 02:39:17 +00:00
parent 7ad8304223
commit 6d5a19ed17
1 changed files with 3 additions and 3 deletions

View File

@ -568,10 +568,10 @@ function is_admin() {
* @return bool True if multisite is enabled, false otherwise.
*/
function is_multisite() {
if ( defined( 'MULTISITE' ) && ! MULTISITE )
return false;
if ( defined( 'MULTISITE' ) )
return MULTISITE;
if ( ( defined( 'MULTISITE' ) && MULTISITE ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) )
if ( defined( 'VHOST' ) || defined( 'SUNRISE' ) )
return true;
return false;