Use option from 1.6.6 to detect if an upgrade is needed. Closes #2054.
This commit is contained in:
parent
b66deaa804
commit
b11b121d24
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue