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

git-svn-id: https://develop.svn.wordpress.org/trunk@16454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-11-18 05:29:03 +00:00
parent dc27759993
commit 2b9c7f6113
1 changed files with 8 additions and 2 deletions

View File

@ -18,8 +18,14 @@ require_once( './admin.php' );
if ( ! is_super_admin() )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
if ( is_multisite() && ! defined( 'MULTISITE' ) )
wp_die( __( 'The Network creation panel is not for WordPress MU networks.' ) );
if ( is_multisite() ) {
if ( ! is_network_admin() ) {
wp_redirect( network_admin_url( 'setup.php' ) );
exit;
}
if ( ! defined( 'MULTISITE' ) )
wp_die( __( 'The Network creation panel is not for WordPress MU networks.' ) );
}
// We need to create references to ms global tables to enable Network.
foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table )