Title: how to recognize multisite in PHP code?
Last modified: August 19, 2016

---

# how to recognize multisite in PHP code?

 *  Resolved [TheRider62](https://wordpress.org/support/users/therider62/)
 * (@therider62)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/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

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Anonymous User
 * (@anonymized-3085)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-recognize-multisite-in-php-code/#post-1652870)
 * You had the answer yourself, and a quick search of the code would have revealed
   it.
 * is_multisite() is the way forward.
 *  Thread Starter [TheRider62](https://wordpress.org/support/users/therider62/)
 * (@therider62)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-recognize-multisite-in-php-code/#post-1652880)
 * oops *blushing* sorry. Somehow my search was unsuccessful. I must have mistyped
   the search keywords.
 * Thanks. Over-and-out.
 *  Anonymous User
 * (@anonymized-3085)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-recognize-multisite-in-php-code/#post-1652893)
 * don’t worry happens to me a lot, my speeling has never been that great.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘how to recognize multisite in PHP code?’ is closed to new replies.

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [recognize](https://wordpress.org/support/topic-tag/recognize/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 3 replies
 * 2 participants
 * Last reply from: Anonymous User
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-recognize-multisite-in-php-code/#post-1652893)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
