-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WordPress Core versions check semver constraints
In repos we have a config file that determines the version of WordPress Core that needs to be deployed to a live site. This can be a full semver version (e.g. 1.2.3) or a "version" that is actually a moveable tag related to a major release (e.g. v6). Previously, we did not check for this edge case, which means that in some cases, we did not return a full semver version and this caused a bug in updating language packs whereby old language packs would be written into repos and lockfiles. Now, we remove any leading 'v' characters and return a fully qualified semver version (e.g. 1.2.3). We make an assumption that the list of available core versions (e.g. https://api.wordpress.org/translations/core/1.0/?version=6) is ordered by most recent release first.
- Loading branch information
Showing
2 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters