Skip to content

Commit

Permalink
Merge pull request #106 from wp-blocks/update/version
Browse files Browse the repository at this point in the history
Update/version
  • Loading branch information
erikyo authored Jan 26, 2024
2 parents f3ec0dd + 0b958c2 commit b9e30de
Show file tree
Hide file tree
Showing 7 changed files with 446 additions and 441 deletions.
2 changes: 1 addition & 1 deletion cf7-antispam.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/* CONSTANTS */
define( 'CF7ANTISPAM_NAME', 'cf7-antispam' );

define( 'CF7ANTISPAM_VERSION', '0.6.0' );
define( 'CF7ANTISPAM_VERSION', '0.6.1' );

define( 'CF7ANTISPAM_PLUGIN', __FILE__ );

Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
},
"require": {
"geoip2/geoip2": "~2.0",
"l3u/b8": "*"
"l3u/b8": "*",
"ext-json": "*",
"ext-openssl": "*"
},
"scripts": {
"PHPCS": "vendor/bin/phpcs --standard=phpcs.xml.dist -s --report=full,summary,source",
Expand Down
6 changes: 5 additions & 1 deletion engine/CF7_AntiSpam_Uninstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public static function cf7a_full_reset() {
self::uninstall( false );
CF7_AntiSpam_Activator::install();

// reset options
update_option( 'cf7a_db_version', '1' );
CF7_AntiSpam_Activator::update_options( true );

return true;
}

Expand Down Expand Up @@ -81,7 +85,7 @@ protected static function cf7a_plugin_drop_options() {
* @param bool $force If set to true, the cf7-antispam database and options tables delete will be forced otherwise it will be skipped.
*/
public static function uninstall( $force = true ) {
if ( ( defined( CF7ANTISPAM_DEBUG_EXTENDED ) && CF7ANTISPAM_DEBUG_EXTENDED === true ) || ! $force ) {
if ( ( defined( CF7ANTISPAM_DEBUG_EXTENDED ) && CF7ANTISPAM_DEBUG_EXTENDED === true ) || $force === false ) {
cf7a_log( 'CONTACT FORM 7 ANTISPAM - constant "CF7ANTISPAM_DEBUG_EXTENDED" is set so options and database will NOT be deleted.' );
return false;
} else {
Expand Down
Loading

0 comments on commit b9e30de

Please sign in to comment.