• Resolved TheRider62

    (@therider62)


    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)
  • 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

    (@therider62)

    oops *blushing* sorry. Somehow my search was unsuccessful. I must have mistyped the search keywords.

    Thanks. Over-and-out.

    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.