diff --git a/plugins/woocommerce-admin/src/Install.php b/plugins/woocommerce-admin/src/Install.php index f48e5895e70..a65b0ef4347 100644 --- a/plugins/woocommerce-admin/src/Install.php +++ b/plugins/woocommerce-admin/src/Install.php @@ -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' );