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

Commit

Permalink
improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed May 23, 2023
1 parent 0fdd74d commit 9bb4dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 9bb4dd2

Please sign in to comment.