Making WordPress.org


Ignore:
Timestamp:
01/12/2016 11:28:36 PM (9 years ago)
Author:
ocean90
Message:

API: Use the GLOTPRESS_LOCALES_PATH constant instead of a hardcoded path to GlotPress' locales.php.

File:
1 edited

Legend:

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

    r160 r2291  
    4343// Convert a locale from a WP locale to a GP locale.
    4444if ( ( isset( $_GET['locale'] ) && 'en_US' != $_GET['locale'] ) || ( 'cli' == php_sapi_name() && isset( $argv[2] ) ) ) {
    45     require WPORGPATH . 'translate/glotpress/locales/locales.php';
     45    require GLOTPRESS_LOCALES_PATH;
    4646    $gp_locale = GP_Locales::by_field( 'wp_locale', isset( $argv[2] ) ? $argv[2] : $_GET['locale'] );
    4747    if ( $gp_locale ) {
Note: See TracChangeset for help on using the changeset viewer.