-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
110 changed files
with
1,591 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# BC Security Changelog | ||
|
||
## Upcoming version 0.19.0 (2022-06-02) | ||
|
||
### Added | ||
|
||
* PHP 8.1 is supported [#116](https://github.com/chesio/bc-security/issues/116). | ||
* WordPress versions 5.9 and 6.0 are supported [#121](https://github.com/chesio/bc-security/issues/121) and [#127](https://github.com/chesio/bc-security/issues/127). | ||
* An option to restrict login options has been implemented: login via email or login via username can be disabled [#123](https://github.com/chesio/bc-security/issues/123). | ||
* [Changelog.md](CHANGELOG.md) has been added [#125](https://github.com/chesio/bc-security/issues/125). | ||
|
||
### Removed | ||
|
||
* "Check auth cookies" setting has been removed [#124](https://github.com/chesio/bc-security/issues/124). | ||
|
||
## Version 0.18.1 (2021-12-29) | ||
|
||
### Fixed | ||
|
||
* EOL dates for PHP versions in PHP version check has been updated: EOL date for PHP 7.3 has been removed, EOL date for PHP 8.1 has been added [#115](https://github.com/chesio/bc-security/issues/115). | ||
|
||
## Version 0.18.0 (2021-11-30) | ||
|
||
### Added | ||
|
||
* PHP 8.0 is supported [#104](https://github.com/chesio/bc-security/issues/104). | ||
* Alert about "No removed plugins installed" has more information [#107](https://github.com/chesio/bc-security/issues/107). | ||
* Detection of plugins installed from WordPress Directory has been improved [#112](https://github.com/chesio/bc-security/issues/112). | ||
* On WordPress 5.8 and newer the plugin cannot be accidentally overriden from WordPress.org Plugins Directory [#111](https://github.com/chesio/bc-security/issues/111). | ||
|
||
## Older releases | ||
|
||
Notes on changes in all releases can be found [here](https://github.com/chesio/bc-security/releases). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ | |
* Plugin Name: BC Security | ||
* Plugin URI: https://github.com/chesio/bc-security | ||
* Description: Helps keeping WordPress websites secure. | ||
* Version: 0.18.1 | ||
* Version: 0.19.0 | ||
* Author: Česlav Przywara <[email protected]> | ||
* Author URI: https://www.chesio.com | ||
* Requires PHP: 7.3 | ||
* Requires WP: 5.5 | ||
* Tested up to: 5.8 | ||
* Tested up to: 6.0 | ||
* Text Domain: bc-security | ||
* GitHub Plugin URI: https://github.com/chesio/bc-security | ||
* Update URI: https://github.com/chesio/bc-security | ||
|
@@ -53,13 +53,18 @@ | |
// Register autoloader for this plugin. | ||
require_once __DIR__ . '/autoload.php'; | ||
|
||
// Construct plugin instance. | ||
$bc_security = new \BlueChip\Security\Plugin(__FILE__, $GLOBALS['wpdb']); | ||
return call_user_func(function () { | ||
// Construct plugin instance. | ||
$bc_security = new \BlueChip\Security\Plugin(__FILE__, $GLOBALS['wpdb']); | ||
|
||
// Register activation hook. | ||
register_activation_hook(__FILE__, [$bc_security, 'activate']); | ||
// Register deactivation hook. | ||
register_deactivation_hook(__FILE__, [$bc_security, 'deactivate']); | ||
// Register activation hook. | ||
register_activation_hook(__FILE__, [$bc_security, 'activate']); | ||
// Register deactivation hook. | ||
register_deactivation_hook(__FILE__, [$bc_security, 'deactivate']); | ||
|
||
// Load the plugin. | ||
$bc_security->load(); | ||
// Boot up the plugin immediately after all plugins are loaded. | ||
add_action('plugins_loaded', [$bc_security, 'load'], 0, 0); | ||
|
||
// Return the instance. | ||
return $bc_security; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.