Making WordPress.org

#6334 closed feature request (wontfix)

Stable check API major versions don't match the download zip

Reported by: dingo_d's profile 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.

Change History (2)

#1 in reply to: ↑ description @SergeyBiryukov
21 months ago

Replying to dingo_d:

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).

I think these numbers match not the GitHub tags, but WordPress' own packages:

So I would recommend using those files instead.

#2 @dingo_d
21 months ago

  • Resolution set to wontfix
  • Status changed from new to closed

Yeah, just noticed that not all tags on GH match the released versions, and I do need the GitHub versions because I need the test files.

So I'll probably need to use GH API for what I need.

Note: See TracTickets for help on using tickets.