We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe5083d commit 9f8bbdbCopy full SHA for 9f8bbdb
src/Support/Zip.php
@@ -167,6 +167,12 @@ public function ensureDoesntHaveSubdir(string $targetPath): string
167
$files[] = $file;
168
}
169
170
+ foreach ($files as $file) {
171
+ if (str_contains($file, 'plugin.json') || str_contains($file, 'theme.json')) {
172
+ return $targetPath;
173
+ }
174
175
+
176
$fileCount = count($files);
177
if (1 < $fileCount && $fileCount <= 3) {
178
throw new \RuntimeException("Cannot handle the zip file, zip file count is: {$fileCount}, extract path is: {$targetPath}");
0 commit comments