Skip to content

Commit

Permalink
fix(mu-plugins): Fix invalid array access notice on 7.4 (Fixes #509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Apr 24, 2020
1 parent 7403e14 commit d6b8dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/mu-plugins/bedrock-autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private function updateCache()
$this->autoPlugins = get_plugins($this->relativePath);
$this->muPlugins = get_mu_plugins();
$plugins = array_diff_key($this->autoPlugins, $this->muPlugins);
$rebuild = !is_array($this->cache['plugins']);
$rebuild = !isset($this->cache['plugins']);
$this->activated = $rebuild ? $plugins : array_diff_key($plugins, $this->cache['plugins']);
$this->cache = ['plugins' => $plugins, 'count' => $this->countPlugins()];

Expand Down

0 comments on commit d6b8dd4

Please sign in to comment.