I've installed a single site WP. In one of my plugins, I have the following code:
if(is_multisite) {
$upload_dir = get_upload_dir();
$_SESSION['root_image_dir'] = str_replace('\\','/',$upload_dir['basedir']);
echo 'IS MULTI.'; //<-- this is outputted every time
} else {
$_SESSION['root_image_dir'] = '';
echo 'IS NOT MULTI'.$_SESSION['root_image_dir'];
}
For some reason, the echo statement is triggered every time.
Why is is_multisite not working?.