From 06cf80352cc33a83fbac81c2068c68cccb0c1720 Mon Sep 17 00:00:00 2001 From: Stefan Lindberg Date: Fri, 5 Oct 2018 12:55:59 +0200 Subject: [PATCH] Fix issue when bedrock_autoloader option is set but the mu-plugin count differs from installed plugins --- web/app/mu-plugins/bedrock-autoloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/mu-plugins/bedrock-autoloader.php b/web/app/mu-plugins/bedrock-autoloader.php index 506bd4e84d..67c6d86f19 100644 --- a/web/app/mu-plugins/bedrock-autoloader.php +++ b/web/app/mu-plugins/bedrock-autoloader.php @@ -114,7 +114,7 @@ private function checkCache() { $cache = get_site_option('bedrock_autoloader'); - if ($cache === false) { + if ($cache === false || (isset($cache['plugins'], $cache['count']) && count($cache['plugins']) !== $cache['count'])) { $this->updateCache(); return; }