Open timbocode opened 4 years ago
I was just in the process of doing a PR for this.
I think there are two separate issues.
Maintaining compatibility for WC < 3.0 is one issue.
But the issue I referred to only affects updates.
The question I am asking is: does the update code in includes/wc-update-functions.php and includes/class-wc-install.php only affect existing WC installations where someone is updating WooCommerce to a later version?
If you installed a clean copy of WooCommerce 3.5.3, would this update code still be required?
EDIT: the code I'm referring to is basically everything in includes/wc-update-functions.php except for the newly added wc_update_353_db_version()
function and everything in the $db_updates
array in class-wc-install.php except for the '3.5.3' element.
For a clean install, simple answer is no effect whatsoever.
These have an effect if you are moving from an older WC to CC or WC 3.5.3. I am thinking of the folks who have not touched their e-commerce for ages since let's say 3.0.0 and have now chosen to move CC. They need to update their DB.
Questions:
Answering the above will lead to move code that can be removed as being redundant in code base. It is a big decision. However, initially, we had wanted to have a WC-3.5.3 backward compatible plugin. We could reserve this for CC-2.0.0
OK, I see your point. Let's leave it as it is for now and tag it for 2.0.
This in itself brings a new issue. There is code for WC < 3.0. Do we want to maintain this? If we have an answer for this we can then sort out that issue of redundant code too.
Originally posted by @bahiirwa in https://github.com/ClassicPress-research/classic-commerce/issues/143#issuecomment-566935420