Make WordPress Core


Ignore:
Timestamp:
03/11/2010 11:53:03 PM (16 years ago)
Author:
nacin
Message:

Don't allow access to network.php if running an MU network. It is only for networks created in 3.0. see #11816. Also, fix MS htaccess logic, see #12136

File:
1 edited

Legend:

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

    r13660 r13679  
    183183        if ( is_multisite() && !is_main_site() )
    184184                $submenu['tools.php'][25] = array( __('Delete Site'), 'manage_options', 'ms-delete-site.php' );
    185         if ( is_super_admin() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE )
     185        if ( ( ! is_multisite() || defined( 'MULTISITE' ) ) && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE && is_super_admin() )
    186186                $submenu['tools.php'][50] = array(__('Network'), 'manage_options', 'network.php');
    187187
Note: See TracChangeset for help on using the changeset viewer.