Send a warning in case Jetpack is pinned but the pinned version is not available anymore #5093
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.
Description
Implements an error message in case the pinned version of Jetpack is not available at VIP anymore.
Previously we'd silently fall back to maximum allowed version for this specific core version, now we also log the following message:
Warning: Jetpack loading error: 8.7 could not be loaded, loading 12.9 instead.
This is mostly for develop environment purposes as mu-plugins image got extremely large, so we're going to remove some less-used versions locally. (Nothing changes for production)
Plugin Updated: Jetpack Loader
When trying to load a version of Jetpack that's not available anymore an error message is going to be logged in addition to falling back to one of compatible versions of Jetpack.
Pre-review checklist
Please make sure the items below have been covered before requesting a review:
Pre-deploy checklist
Steps to Test