Remove 3.1.13 update step from lifecycle #2736
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this Pull Request:
As reported in the forums: https://wordpress.org/support/topic/php-fatal-error-uncaught-error-class-woocommerce/
If a merchant has Facebook for WooCommerce < 3.1.13 and Messenger enabled, and then updates directly to ≥ 3.2.0, an error is triggered during the update lifecycle process due to a class that was removed in 3.2.0 being referenced in the update step for 3.1.13.
This PR removes the 3.1.13 update step altogether, as it just added an notice warning about the upcoming May 2024 deprecation of the Facebook Messenger chat plugin. Since we're now past that date, there's no reason to even consider it. It is mentioned in the 3.2.0 update method, however, since it's possible that users that update < 3.1.13 → 3.1.13-3.1.15 will have the deprecation notice, so updating again to ≥ 3.2.0 should still remove it.
Detailed test instructions:
To reproduce:
include/Lifecycle.php
, set$is_messenger_enabled = true;
to force the condition.facebook-for-woocommerce.php
to3.1.11
in the docs and the version constant:3.1.11
:3.2.0
To confirm fix:
Changelog entry