Make WordPress Core

Changeset 15053


Ignore:
Timestamp:
05/29/2010 03:32:43 PM (14 years ago)
Author:
nbachiyski
Message:

Load multisite strings POT file only on multisite requests. Fixes #13565

File:
1 edited

Legend:

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

    r14924 r15053  
    366366    $locale = get_locale();
    367367
    368     $mofile = WP_LANG_DIR . "/$locale.mo";
    369 
    370     return load_textdomain( 'default', $mofile );
     368    load_textdomain( 'default', WP_LANG_DIR . "/$locale.mo" );
     369   
     370    if ( is_multisite() || ( defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) ) {
     371        load_textdomain( 'default', WP_LANG_DIR . "/ms-$locale.mo" );
     372    }
    371373}
    372374
Note: See TracChangeset for help on using the changeset viewer.