Use option from 1.6.6 to detect if an upgrade is needed. Closes #2054.

This commit is contained in:
Mike Jolley 2012-12-29 18:58:17 +00:00
parent b66deaa804
commit b11b121d24
1 changed files with 1 additions and 1 deletions

View File

@ -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 );