Fix DB version retrieval default value. (https://github.com/woocommerce/woocommerce-admin/pull/3473)
Value should be null if not set.
This commit is contained in:
parent
a5c4e13fbb
commit
c28b6d9f2c
|
@ -308,7 +308,7 @@ class Install {
|
|||
* @return boolean
|
||||
*/
|
||||
public static function needs_db_update() {
|
||||
$current_db_version = get_option( self::VERSION_OPTION );
|
||||
$current_db_version = get_option( self::VERSION_OPTION, null );
|
||||
$updates = self::get_db_update_callbacks();
|
||||
$update_versions = array_keys( $updates );
|
||||
usort( $update_versions, 'version_compare' );
|
||||
|
|
Loading…
Reference in New Issue