Multisite functionality is broken on newer installs
-
I was trying to figure out some custom conditions to do with knowing if a user is logged in and is a member of the current site in a multisite. SInce If Menu didn’t seem to have those abilities
I went to have a look in the If Menu code to see what might help me. And I spotted some sections using
if (defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE === true){ANd I realised that If Menu DOES know about multisites.
However, the global variable you are looking for is not the one my server is using. My server is using:
define( 'MULTISITE', true );I probably replaced
WP_ALLOW_MULTISITEwithMULTISITEas part of the setup.I expect many people may have done the same. But also, the
WP_ALLOW_MULTISITEvariable only says that Multi site is allowed. It doesn’t mean that it has been installed…But
MULTISITEHAS to always be there for multisite to work. Perhaps the check should be forMULTISITEorWP_ALLOW_MULTISITE.In my case, I added the variable back to my wp-config.php and I got those menu items
The topic ‘Multisite functionality is broken on newer installs’ is closed to new replies.