Skip to content

Commit

Permalink
Merge pull request roots#137 from starise/master
Browse files Browse the repository at this point in the history
Fix mu-plugins not shown in multisite setup
  • Loading branch information
swalkinshaw committed Feb 4, 2015
2 parents c3e425e + 4d4912f commit 9c0832b
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 9c0832b

Please sign in to comment.