Skip to content

Commit

Permalink
fix: wordpress plugin domain detection
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocesarato committed Oct 24, 2020
1 parent 53c7314 commit 6d1b71d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified dist/scanner
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Module/Wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static function getPlugins($root)
foreach ($files as $cur) {
if ($cur->isFile()) {
$headers = self::getPluginHeaders($cur->getPathname());
if (!empty($headers['domain']) && !empty($headers['version'])) {
if (!empty($headers['name']) && !empty($headers['version'])) {
if (empty($headers['domain'])) {
$headers['domain'] = $cur->getBasename('.' . $cur->getExtension());
}
Expand Down Expand Up @@ -180,7 +180,7 @@ public static function getChecksums($version, $locale = 'en_US')
}

/**
* Get checksums.
* Get plugins checksums.
*
* @param $version
* @param string $locale
Expand Down

0 comments on commit 6d1b71d

Please sign in to comment.