Skip to content

Commit b9f2681

Browse files
committed
fix: need to look in mu-plugins to see if ymir plugin is installed
1 parent 16edd3b commit b9f2681

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Build/EnsurePluginIsInstalledStep.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ public function getDescription(): string
4747
*/
4848
public function perform(string $environment, ProjectConfiguration $projectConfiguration)
4949
{
50-
$pluginsPath = 'bedrock' !== $projectConfiguration->getProjectType() ? '/wp-content/plugins' : '/web/app/plugins';
50+
$pluginsPaths = array_map(function (string $path) {
51+
return $this->buildDirectory.$path;
52+
}, 'bedrock' !== $projectConfiguration->getProjectType() ? ['/wp-content/mu-plugins', '/wp-content/plugins'] : ['/web/app/plugins', '/web/app/mu-plugins']);
5153

5254
$finder = Finder::create()
5355
->files()
54-
->in($this->buildDirectory.$pluginsPath)
56+
->in($pluginsPaths)
5557
->depth('== 1')
5658
->name('ymir.php')
5759
->contains('Plugin Name: Ymir');

0 commit comments

Comments
 (0)