WordPress.org

Making WordPress.org

#3114 closed defect (fixed)

The credits API responds with latest version data for old versions

Reported by: johnbillion Owned by: obenland
Milestone: Priority: normal
Component: API Keywords: needs-patch
Cc:

Description

The response to requesting https://api.wordpress.org/core/credits/1.1/?version=3.1 and earlier versions is credits data for the latest version of WordPress, but this is not immediately obvious unless you check the data.version property.

Requests for credits information prior to 3.2 should respond with something more appropriate, for example a 404.

Change History (3)

#1 @SergeyBiryukov
20 months ago

Related: #577

Maybe we could parse the props and backfill the credits data for older releases?

#2 @johnbillion
20 months ago

Yeah backfilling the older versions' data would be great

#3 @obenland
10 months ago

  • Owner set to obenland
  • Resolution set to fixed
  • Status changed from new to closed

In 7300:

Credits: Bail for credits prior to 3.2.

There are no credits for versions earlier than that.

Props johnbillion.
Fixes #3114.

Note: See TracTickets for help on using tickets.