Making WordPress.org

Opened 7 years ago

Closed 7 years ago

#776 closed defect (wontfix)

Translation API: Missing translations for development versions

Reported by: ocean90 Owned by:
Milestone: Priority: normal
Component: API Keywords: has-patch

Description (last modified by ocean90)


http://api.wordpress.org/translations/core/1.0/?version=4.1-RC1 returns only the results for version 4.0 because version_compare( '4.1-RC1', '4.1', '>=' ) is false.

1) Use only the branch part of the version, see 776.patch
2) Skip version compare for dev versions, see 776.2.patch
3) ?

The lines are based on https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-upgrader.php?rev=30762#L2119.

Attachments (2)

776.patch (1.2 KB) - added by ocean90 7 years ago.
776.2.patch (1.6 KB) - added by ocean90 7 years ago.

Download all attachments as: .zip

Change History (5)

7 years ago

7 years ago

#1 @ocean90
7 years ago

  • Description modified (diff)

This ticket was mentioned in Slack in #meta-i18n by ocean90. View the logs.

7 years ago

#3 @ocean90
7 years ago

  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.