Theme Issue with WordPress Multisite
-
There is a problem with using Max Mega Menu on a multisite instance. Even though the plugin is activated on a per site basis, the themes appear to be shared amongst all the sites on the network. This means that site admins can change the styling for sites that they do not own.
Is there an easy way to remedy this?
-
Hi Jsci,
Thanks for reporting this.
This is an old issue that goes back to the very first version of MMM – I did not properly understand the impact of using get_site_option vs get_option. The problem is that some people will be relying on this bug in order to share themes across their network, so it’s not as easy as just correcting it, as I will likely break some peoples sites.
Unfortunately there is no quick fix for it. I will add a switch into the next version (likely a line required in wp-config.php, something like define(“MEGAMENU_SHARE_THEMES_ACROSS_NETWORK”, false)) to work around this.
Regards,
TomTom,
This is truly an example where a bug becomes an undocumented feature. I totally understand not wanting to break it for users that actually like/need this capability. I look forward to your update with the option to turn of the theme sharing.
Kind regards,
John
Hi John,
I’ve just updated the development version which will allow you to add this to your wp-config.php file:
define('MEGAMENU_SHARE_THEMES_MULTISITE', false);Please try installing the dev version from the bottom of this page:
https://wordpress.org/plugins/megamenu/advanced/
Your previously saved theme(s) will disappear from the interface as soon as you add that line (but you can get them back by removing that line again). So first export your theme, then edit wp-config.php, then import your theme.
Regards,
Tom
The topic ‘Theme Issue with WordPress Multisite’ is closed to new replies.