diff --git a/bc-security.php b/bc-security.php index 9a8d8c8..e458082 100644 --- a/bc-security.php +++ b/bc-security.php @@ -3,7 +3,7 @@ * Plugin Name: BC Security * Plugin URI: https://github.com/chesio/bc-security * Description: Helps keeping WordPress websites secure. Plugin requires PHP 5.6 or newer to run. - * Version: 0.6.3 + * Version: 0.6.4 * Author: Česlav Przywara * Author URI: https://www.chesio.com * Requires at least: 4.7 diff --git a/uninstall.php b/uninstall.php index 0cffe0a..02ee4fb 100644 --- a/uninstall.php +++ b/uninstall.php @@ -14,6 +14,9 @@ require_once __DIR__ . '/autoload.php'; // Construct plugin instance. -$bc_security = new \BlueChip\Security\Plugin($GLOBALS['wpdb']); +$bc_security = new \BlueChip\Security\Plugin( + plugin_basename(preg_replace('/uninstall.php$/', 'bc-security.php', __FILE__)), // A bit hacky, but functional approach. + $GLOBALS['wpdb'] +); // Run uninstall actions. $bc_security->uninstall();