Skip to content

Commit

Permalink
Improve plugin active detection when using WP Plugin_Updater->upgrade()
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Apr 29, 2016
1 parent a75f879 commit 3b4fe7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/includes/traits/Plugin/WcpUpdaterUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function autoClearOnUpgraderProcessComplete(\WP_Upgrader $upgrader_instan
}
}
unset($_plugin); // Housekeeping.
} elseif ($single_plugin_update && is_plugin_active($data['plugin'])) {
} elseif ($single_plugin_update && ( is_plugin_active($data['plugin']) || $upgrader_instance->skin->upgrader->skin->plugin_active || $upgrader_instance->skin->upgrader->skin->plugin_network_active)) {
$upgrading_active_plugin = true;
}
if ($upgrading_active_plugin) {
Expand Down

0 comments on commit 3b4fe7a

Please sign in to comment.