diff --git a/src/Migration.php b/src/Migration.php index 8a80059069e..f82b72c58ce 100644 --- a/src/Migration.php +++ b/src/Migration.php @@ -31,7 +31,7 @@ public function run_migrations() { // This check is necessary because the version was not being set in the database until 10.3.0. // We can remove this check in the next months. - if ( ! empty( get_option( 'wc_blocks_db_schema_version', '' ) ) ) { + if ( ! empty( $current_db_version ) && version_compare( $current_db_version, '10.4.0', '<' ) ) { $this->wc_blocks_update_1030_blockified_product_grid_block(); }