From 21920868b6ce7c8b0363e579d4a524eb9121c738 Mon Sep 17 00:00:00 2001 From: Luigi Date: Mon, 31 Jul 2023 16:43:13 +0200 Subject: [PATCH] improve migration to blockified templates --- src/Migration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }