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:
parent
7ad8304223
commit
6d5a19ed17
@ -568,10 +568,10 @@ function is_admin() {
|
|||||||
* @return bool True if multisite is enabled, false otherwise.
|
* @return bool True if multisite is enabled, false otherwise.
|
||||||
*/
|
*/
|
||||||
function is_multisite() {
|
function is_multisite() {
|
||||||
if ( defined( 'MULTISITE' ) && ! MULTISITE )
|
if ( defined( 'MULTISITE' ) )
|
||||||
return false;
|
return MULTISITE;
|
||||||
|
|
||||||
if ( ( defined( 'MULTISITE' ) && MULTISITE ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) )
|
if ( defined( 'VHOST' ) || defined( 'SUNRISE' ) )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user