Making WordPress.org

Changeset 739


Ignore:
Timestamp:
07/07/2014 07:09:50 PM (9 years ago)
Author:
nacin
Message:

Translations API: Key them by 'translations', not 'languages'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/translations/core/1.0/index.php

    r711 r739  
    1414call_headers( 'application/json' );
    1515
    16 echo json_encode( array( 'languages' => $translations ) );
     16if ( version_compare( $version, '4.0-alpha-29017-src', '>=' ) ) {
     17    echo json_encode( array( 'translations' => $translations ) );
     18} else {
     19    echo json_encode( array( 'languages' => $translations ) );
     20}
     21
    1722exit;
    1823
Note: See TracChangeset for help on using the changeset viewer.