Make WordPress Core


Ignore:
Timestamp:
01/27/2012 10:19:56 PM (14 years ago)
Author:
ryan
Message:

Load the new admin and network admin mo files, if present. see #19852

File:
1 edited

Legend:

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

    r19059 r19772  
    383383    load_textdomain( 'default', WP_LANG_DIR . "/$locale.mo" );
    384384
    385     if ( is_multisite() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ) ) {
     385    if ( ( is_multisite() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ) ) && ! file_exists(  WP_LANG_DIR . "/admin-$locale.mo" ) ) {
    386386        load_textdomain( 'default', WP_LANG_DIR . "/ms-$locale.mo" );
    387     }
     387        return;
     388    }
     389
     390    if ( is_admin()  )
     391        load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo" );
     392
     393    if ( is_network_admin() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ) )
     394        load_textdomain( 'default', WP_LANG_DIR . "/admin-network-$locale.mo" );
     395
    388396}
    389397
Note: See TracChangeset for help on using the changeset viewer.