Make WordPress Core


Ignore:
Timestamp:
03/11/2010 11:53:03 PM (15 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/network.php

    r13676 r13679  
    1616if ( ! is_super_admin() )
    1717    wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     18
     19if ( is_multisite() && ! defined( 'MULTISITE' ) )
     20    wp_die( __('The Network creation panel is not for WordPress MU networks.') );
    1821
    1922// We need to create references to ms global tables to enable Network.
     
    287290
    288291# uploaded files
    289 RewriteRule ^' . ( $vhost ? '([_0-9a-zA-Z-]+/)?' : '' ) . 'files/(.+) wp-includes/ms-files.php?file=$2 [L]' . "\n";
     292RewriteRule ^' . ( $vhost ? '' : '([_0-9a-zA-Z-]+/)?' ) . 'files/(.+) wp-includes/ms-files.php?file=$' . ( $vhost ? 1 : 2 ) . ' [L]' . "\n";
    290293
    291294if ( ! $vhost )
Note: See TracChangeset for help on using the changeset viewer.