From 9bb4dd283a5b29212b6966b45d6c2823bc6c86d5 Mon Sep 17 00:00:00 2001 From: Luigi Date: Tue, 23 May 2023 09:49:39 +0200 Subject: [PATCH] improve check --- src/Migration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Migration.php b/src/Migration.php index 35f2d453dfd..058d3ba35de 100644 --- a/src/Migration.php +++ b/src/Migration.php @@ -30,8 +30,8 @@ public function run_migrations() { $current_db_version = get_option( Options::WC_BLOCK_VERSION, '' ); // This check is necessary because the version was not being set in the database until 10.3.0. - // In the next version, we can remove this check. - if ( ! is_empty( get_option( 'wc_blocks_db_schema_version', '' ) ) && str_contains( Package::get_version(), '10.3' ) ) { + // We can remove this check in the next months. + if ( ! is_empty( get_option( 'wc_blocks_db_schema_version', '' ) ) ) { $this->wc_blocks_update_1020_blockified_product_grid_block(); }