Make WordPress Core

Changeset 15064


Ignore:
Timestamp:
05/29/2010 08:35:19 PM (15 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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r15051 r15064  
    1010 * @subpackage Administration
    1111 */
     12
     13define( 'WP_NETWORK_ADMIN_PAGE', true );
    1214
    1315/** WordPress Administration Bootstrap */
  • 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.