WordPress.org

Make WordPress Core

Changeset 16454


Ignore:
Timestamp:
11/18/10 05:29:03 (3 years ago)
Author:
nacin
Message:

Redirect from network.php to network/setup.php. see #15461.

File:
1 edited

Legend:

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

    r16453 r16454  
    1919    wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 
    2020 
    21 if ( is_multisite() && ! defined( 'MULTISITE' ) ) 
    22     wp_die( __( 'The Network creation panel is not for WordPress MU networks.' ) ); 
     21if ( is_multisite() ) { 
     22    if ( ! is_network_admin() ) { 
     23        wp_redirect( network_admin_url( 'setup.php' ) ); 
     24        exit; 
     25    } 
     26    if ( ! defined( 'MULTISITE' ) ) 
     27        wp_die( __( 'The Network creation panel is not for WordPress MU networks.' ) ); 
     28}    
    2329 
    2430// We need to create references to ms global tables to enable Network. 
Note: See TracChangeset for help on using the changeset viewer.