Skip to content

Commit

Permalink
Fix mu-plugins not shown in multisite setup
Browse files Browse the repository at this point in the history
Reported in roots#58
  • Loading branch information
starise committed Feb 4, 2015
1 parent c3e425e commit 4d4912f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/app/mu-plugins/bedrock-autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4d4912f

Please sign in to comment.