From b11b121d2483c3e2f82d815e78bd3715ff611a4d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Sat, 29 Dec 2012 18:58:17 +0000 Subject: [PATCH] Use option from 1.6.6 to detect if an upgrade is needed. Closes #2054. --- admin/woocommerce-admin-install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/woocommerce-admin-install.php b/admin/woocommerce-admin-install.php index 9fb9ba33ad1..07c338864f4 100644 --- a/admin/woocommerce-admin-install.php +++ b/admin/woocommerce-admin-install.php @@ -100,7 +100,7 @@ function do_install_woocommerce() { $current_version = get_option( 'woocommerce_version', null ); $current_db_version = get_option( 'woocommerce_db_version', null ); - if ( version_compare( $current_db_version, '2.0', '<' ) && null !== $current_version ) { + if ( version_compare( $current_db_version, '2.0', '<' ) && null !== $current_db_version ) { update_option( 'woocommerce_needs_update', 1 ); } else { update_option( 'woocommerce_db_version', $woocommerce->version );