Making WordPress.org

Changeset 9275


Ignore:
Timestamp:
11/13/2019 11:55:19 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Credits API: Correct start date for the 5.3 cycle.

Add a special case for 5.0 and 5.1 end dates, to correct the translators query for these versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/core/credits/wp-credits.php

    r9263 r9275  
    4848        '5.1' => '2017-11-15 00:00:00', // Yes, 5.0 and 5.1 have the same date. #blamepento
    4949        '5.2' => '2019-02-21 00:00:00',
    50         '5.3' => '2019-11-12 00:00:00',
     50        '5.3' => '2019-05-07 00:00:00',
    5151    );
    5252
     
    244244
    245245    final protected function get_end_date() {
     246        // 5.0 and 5.1 have the same start date and don't follow the pattern.
     247        if ( '5.0' === $this->branch ) {
     248            return '2018-12-06 00:00:00';
     249        } elseif ( '5.1' === $this->branch ) {
     250            return '2019-02-21 00:00:00';
     251        }
     252
    246253        $next = false;
    247254        foreach ( self::$cycle_dates as $branch => $date ) {
Note: See TracChangeset for help on using the changeset viewer.