WordPress.org

Make WordPress Core

Changeset 19787


Ignore:
Timestamp:
01/29/2012 08:49:34 PM (8 years ago)
Author:
nacin
Message:

Load admin-$locale.mo in setup-config.php. see #19852, see #18180.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/load.php

    r19760 r19787  
    725725                if ( file_exists( $location . '/' . $locale . '.mo' ) ) {
    726726                    load_textdomain( 'default', $location . '/' . $locale . '.mo' );
     727                    if ( defined( 'WP_SETUP_CONFIG' ) && file_exists( $location . '/admin-' . $locale . '.mo' ) )
     728                        load_textdomain( 'default', $location . '/admin-' . $locale . '.mo' );
    727729                    if ( WP_Locale::is_locale_rtl( $locale ) )
    728730                        $text_direction = 'rtl';
Note: See TracChangeset for help on using the changeset viewer.