From 4d4912fa7616b4d5f590521d28d021b058dd3b70 Mon Sep 17 00:00:00 2001 From: Andrea Brandi Date: Wed, 4 Feb 2015 12:26:43 +0100 Subject: [PATCH] Fix mu-plugins not shown in multisite setup Reported in #58 --- web/app/mu-plugins/bedrock-autoloader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/mu-plugins/bedrock-autoloader.php b/web/app/mu-plugins/bedrock-autoloader.php index 0e9ff37bec..81aba265ed 100644 --- a/web/app/mu-plugins/bedrock-autoloader.php +++ b/web/app/mu-plugins/bedrock-autoloader.php @@ -55,8 +55,9 @@ public function loadPlugins() { */ public function showInAdmin($bool, $type) { $screen = get_current_screen(); + $current = is_multisite() ? 'plugins-network' : 'plugins'; - if ($screen->{'base'} != 'plugins' || $type != 'mustuse' || !current_user_can('activate_plugins')) { + if ($screen->{'base'} != $current || $type != 'mustuse' || !current_user_can('activate_plugins')) { return $bool; }