diff --git a/src/Handlers/PluginUpdate.php b/src/Handlers/PluginUpdate.php index d7398740..1af66f81 100644 --- a/src/Handlers/PluginUpdate.php +++ b/src/Handlers/PluginUpdate.php @@ -51,10 +51,14 @@ private static function maybe_update_database() { // Prevent further update triggers during the same request that run before the DB version is updated. self::$db_update_triggered = true; - $version_from_db = get_option( 'antispambee_db_version', 0 ); + $version_from_db = get_option( 'antispambee_db_version', null ); update_option( 'antispambee_db_version', self::get_plugin_version() ); + if ( $version_from_db === null ) { + return; + } + if ( $version_from_db < 1.01 ) { global $wpdb;