how to recognize multisite in PHP code?
-
On my multisite install, one of my themes is trying to behave differently than on a single-site-install. This used to work fine on WP-MU (on version 2.9 and below) but stopped working since 3.0. In particular, the theme tries to avoid displaying header images from its own directory and instead wants to display images uploaded to the current site.
As far as I can tell, the PHP code is doing this to find out whether it is running on a multisite install:
if (file_exists(ABSPATH.”/wpmu-settings.php”)) {
…multisite code…
}I have read somewhere that wpmu-settings.php is deprecated and I guess that is probably the reason why the above code does not work anymore.
Can someone tell me what code should be used instead? Is there a is_multisite() function or something like that? If not, why not?
Thanks a lot
- The topic ‘how to recognize multisite in PHP code?’ is closed to new replies.