Opened 2 years ago
Closed 2 years ago
#6334 closed feature request (wontfix)
Stable check API major versions don't match the download zip
Reported by: | dingo_d | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | API | Keywords: | needs-patch dev-feedback |
Cc: |
Description
The API endpoint for checking the stable verssions:
https://api.wordpress.org/core/stable-check/1.0/
Returns a JSON with the latest, outdated, and insecure versions of WP. The new major versions are listed as 5.0, 6.0, without the third version for the security (at least according to semver which WP doesn't really follow).
The tags located on GH: https://github.com/WordPress/wordpress-develop/tags do have these minor version numbers even in the case of the major versions. For instance:
https://github.com/WordPress/wordpress-develop/archive/refs/tags/6.0.0.zip
So if you want to use the API to match the zip file (like what I'm doing), you get an error for the missing zip file, because the version number won't match (6.0 vs 6.0.0).
The API should just add this zero, especially since WP is releasing the security fixes regularly.
Replying to dingo_d:
I think these numbers match not the GitHub tags, but WordPress' own packages:
So I would recommend using those files instead.