Make WordPress Core


Ignore:
Timestamp:
05/29/2010 08:35:19 PM (16 years ago)
Author:
nbachiyski
Message:

Better detection whether we are on the Network page. Use custom constant to tell us. See #13565, props nacin

We used to load multisite translations each time WP_ALLOW_MULTISITE was defined, but
it could lead to alot of false positives. Generic config files can include to allow
users to updgrade to multisite without further editing the config file.

File:
1 edited

Legend:

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

    r15053 r15064  
    368368        load_textdomain( 'default', WP_LANG_DIR . "/$locale.mo" );
    369369       
    370         if ( is_multisite() || ( defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) ) {
     370        if ( is_multisite() || ( defined( 'WP_NETWORK_ADMIN_PAGE' ) && WP_NETWORK_ADMIN_PAGE ) ) {
    371371                load_textdomain( 'default', WP_LANG_DIR . "/ms-$locale.mo" );
    372372        }
Note: See TracChangeset for help on using the changeset viewer.