Making WordPress.org

Changeset 10816

Timestamp:
03/12/2021 02:44:17 AM (3 years ago)
Author:
dd32
Message:

Plugin Directory: API: Cast the rating field to an int just incase \WPORG_Ratings::get_avg_rating() were to ever return a value that doesn't map to a round percentage.

While ::get_avg_rating() has been fixed, this caused some API clients such as the mobile apps to hit unexpected values.

See https://github.com/wordpress-mobile/WordPress-iOS/issues/16056

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.