Making WordPress.org

Changeset 2289


Ignore:
Timestamp:
01/12/2016 10:04:22 PM (10 years ago)
Author:
ocean90
Message:

WP i18n teams: Use the GLOTPRESS_LOCALES_PATH constant instead of a hardcoded path to locales.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/wp-i18n-teams.php

    r2242 r2289  
    8484            require( __DIR__ . '/views/all-locales.php' );
    8585        } else {
    86             require_once( WPORGPATH . 'translate/glotpress/locales/locales.php' );
     86            require_once GLOTPRESS_LOCALES_PATH;
    8787            $locale = GP_Locales::by_field( 'wp_locale', $_GET['locale'] );
    8888            $locale_data = $this->get_extended_locale_data( $locale );
     
    9999     */
    100100    protected static function get_locales() {
    101         require_once( WPORGPATH . 'translate/glotpress/locales/locales.php' );
     101        require_once GLOTPRESS_LOCALES_PATH;
    102102
    103103        $locales = GP_Locales::locales();
Note: See TracChangeset for help on using the changeset viewer.