What is the call to determine, from a theme’s functions.php whether the site is an MU site or not?
Updated with answer:
$dir =
is_multisite() ? 'wp-content/blogs.dir/'.$current_site->blog_id.'/files/'
: 'wp-content/uploads/';
What is the call to determine, from a theme’s functions.php whether the site is an MU site or not?
Updated with answer:
$dir =
is_multisite() ? 'wp-content/blogs.dir/'.$current_site->blog_id.'/files/'
: 'wp-content/uploads/';
You must be logged in to post a comment.
Try the
is_multisite()
conditional, more documentation here: http://codex.wordpress.org/Function_Reference/is_multisiteYou may find the
is_main_site()
conditional useful as well. Just note thatis_main_site()
will always be true ifis_multisite()
is false.