From a2aad1bb0053f27fa6c47af3d4cc6ed8c796f809 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 6 Mar 2010 20:01:32 +0000 Subject: [PATCH] More network.php refinements. Bring wp-config and htaccess inline. Rename BLOGID_CURRENT_SITE to BLOG_ID_CURRENT_SITE for consistency with SITE_ID_CURRENT_SITE. see #11816 git-svn-id: http://svn.automattic.com/wordpress/trunk@13611 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network.php | 126 ++++++++++++---------------------------- wp-includes/ms-load.php | 4 +- 2 files changed, 39 insertions(+), 91 deletions(-) diff --git a/wp-admin/network.php b/wp-admin/network.php index f3ead94d61..8befab0e9b 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -89,7 +89,6 @@ function network_step1() {


- @@ -105,11 +104,11 @@ function network_step1() { - + - +
blog1.example.com and blog2.example.com'); ?>site1.example.com and site2.example.com'); ?>
example.com/blog1 and example.com/blog2'); ?>example.com/site1 and example.com/site2'); ?>
@@ -168,101 +167,48 @@ function network_step2() { global $base, $wpdb; ?>

-

Note: We recommend you make a backup copy of your existing wp-config.php and .htaccess files.' ); ?>

+

+

Caution: We recommend you backup your existing wp-config.php and .htaccess files.' ); ?>

    -
  1. %s/blogs.dir directory. This directory is used to stored uploaded media for your additional sites and must be writeable by the web server.' ), WP_CONTENT_DIR ); ?>
  2. -base_prefix; - - $config_sample = ABSPATH . 'wp-admin/includes/wp-config.ms'; - if ( ! file_exists( $config_sample ) ) - wp_die( sprintf( __( 'Sorry, I need a %s to work from. Please re-upload this file to your WordPress installation.' ), $config_sample ) ); - - $wp_config_file = file( $config_sample ); -?> -
  3. %swp-config.php with the following:' ), ABSPATH ); ?>

    - -
  4. +
  5. blogs.dir directory in %s. This directory is used to stored uploaded media for your additional sites and must be writeable by the web server.' ), WP_CONTENT_DIR ); ?>

  6. +
  7. wp-config.php file in %s:' ), ABSPATH ); ?>

    +
  8. -
  9. %s.htaccess with the following:' ), ABSPATH ); ?>

    - -
  10. +
id = defined( 'SITE_ID_CURRENT_SITE' ) ? SITE_ID_CURRENT_SITE : 1; $current_site->domain = DOMAIN_CURRENT_SITE; $current_site->path = $path = PATH_CURRENT_SITE; - if ( defined( 'BLOGID_CURRENT_SITE' ) ) + if ( defined( 'BLOG_ID_CURRENT_SITE' ) ) + $current_site->blog_id = BLOG_ID_CURRENT_SITE; + elseif ( defined( 'BLOGID_CURRENT_SITE' ) ) // deprecated. $current_site->blog_id = BLOGID_CURRENT_SITE; if ( DOMAIN_CURRENT_SITE == $domain ) $current_site->cookie_domain = $cookie_domain;