diff --git a/src/Module/WPDb.php b/src/Module/WPDb.php index 88b1ca9cf..2ade5db7f 100644 --- a/src/Module/WPDb.php +++ b/src/Module/WPDb.php @@ -3405,8 +3405,11 @@ protected function scaffoldBlogTables(int $blogId, string $domainOrPath, bool $i protected function getWpFilesystemModule(): WPFilesystem { try { + // Support both a prefixed and not prefixed module name. /** @var WPFilesystem $fs */ - $fs = $this->getModule('\\' . WPFilesystem::class); + $fs = $this->hasModule('\\' . WPFilesystem::class) + ? $this->getModule('\\' . WPFilesystem::class) + : $this->getModule(WPFilesystem::class); return $fs; } catch (ModuleException) {