Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
improve migration to blockified templates
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Jul 31, 2023
1 parent bcc1fa8 commit 2192086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 2192086

Please sign in to comment.