We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0129f96 commit e9e767fCopy full SHA for e9e767f
src/johnpbloch/Composer/WordPressCoreInstaller.php
@@ -58,9 +58,10 @@ public function getInstallPath( PackageInterface $package ) {
58
if ( ! $installationDir ) {
59
$installationDir = 'wordpress';
60
}
61
+ $vendorDir = $this->composer->getConfig()->get( 'vendor-dir', Config::RELATIVE_PATHS ) ?: 'vendor';
62
if (
63
in_array( $installationDir, $this->sensitiveDirectories ) ||
- $installationDir === $this->composer->getConfig()->get( 'vendor-dir', Config::RELATIVE_PATHS )
64
+ ( $installationDir === $vendorDir )
65
) {
66
throw new \InvalidArgumentException( $this->getSensitiveDirectoryMessage( $installationDir, $prettyName ) );
67
0 commit comments