Ensure we have MS global tables defined during network install. See #11644

git-svn-id: http://svn.automattic.com/wordpress/trunk@13337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2010-02-23 19:58:53 +00:00
parent e35199deb6
commit 7aa43e9c8b
2 changed files with 9 additions and 3 deletions

View File

@@ -16,6 +16,10 @@ require_once( './admin.php' );
if ( ! is_super_admin() )
wp_die( __( 'You do not have sufficient permissions to manage options for this blog.' ) );
// We need to create references to ms global tables to enable Network.
foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table )
$wpdb->$table = $prefixed_table;
$title = __( 'Network Settings' );
$parent_file = 'tools.php';