13f703fd32
WC doesn't support downgrades but the if condition that decides whether or not to call WC_Install::install() and apply database schema changes was checking if the WC version stored in the database is equal to the WC version in the code. This commit changes the check performed inside the if condition to verify if the WC version stored in the database is smaller than the version in the code. This way `dbDelta()` won't be called automatically by WC and revert database schema changes. This is particulary important for clustered providers where the version of the WC code running in one of the containers could be outdated and trigger a database downgrade. |
||
---|---|---|
.. | ||
class-wc-tests-core-functions.php | ||
class-wc-tests-wc-query.php | ||
conditional-functions.php | ||
deprecated-hooks.php | ||
install.php | ||
notice-functions.php | ||
plugin-updates.php | ||
validation.php |