Skip to content

Commit

Permalink
fix: upgrader action key
Browse files Browse the repository at this point in the history
  • Loading branch information
vermorag committed Dec 16, 2024
1 parent 09c7710 commit 55ee30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static function getPluginPath(?string $path = null): string

public static function scheduleUpgrade(WP_Upgrader $_wp, array $options): void
{
if (($options['action'] !== 'update' ||
if ((($options['action'] !== 'update' && $options['action'] !== 'install') ||
$options['type'] !== 'plugin' ||
!in_array(self::$pluginMainFile, $options['plugins'] ?? [], true))) {
return;
Expand Down

0 comments on commit 55ee30d

Please sign in to comment.