Skip to content

Commit

Permalink
Merge branch 'hotfix-0.6.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
chesio committed Dec 22, 2017
2 parents f50ec8f + dd43987 commit 0245fae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bc-security.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* Author URI: https://www.chesio.com
* Requires at least: 4.7
Expand Down
5 changes: 4 additions & 1 deletion uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 0245fae

Please sign in to comment.