Changeset 13638
- Timestamp:
- 03/09/2010 10:42:36 PM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r13634 r13638 182 182 if ( is_multisite() && ($current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path) ) 183 183 $submenu['tools.php'][25] = array( __('Delete Blog'), 'manage_options', 'ms-delete-site.php' ); 184 if ( !is_multisite() &&is_super_admin() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE )184 if ( is_super_admin() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE ) 185 185 $submenu['tools.php'][50] = array(__('Network'), 'manage_options', 'network.php'); 186 186 -
trunk/wp-admin/network.php
r13637 r13638 16 16 if ( ! is_super_admin() ) 17 17 wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 18 19 if ( is_multisite() )20 wp_die( __( 'The Network feature is already enabled.' ) );21 18 22 19 include( ABSPATH . 'wp-admin/includes/network.php' ); … … 172 169 function network_step2() { 173 170 global $base, $wpdb; 174 if ( ! $_POST ) : ?> 171 if ( ! $_POST ) : 172 if ( is_multisite() ) : ?> 173 <div class="updated"><p><strong><?php _e( 'Notice: The Network feature is already enabled.' ); ?></strong> <?php _e( 'The original configuration steps are shown here for reference.' ); ?></p></div> 174 <?php else : ?> 175 175 <div class="error"><p><strong><?php _e('Warning:'); ?></strong> <?php _e( 'An existing WordPress network was detected.' ); ?></p></div> 176 176 <p><?php _e( 'Please complete the configuration steps. To create a new network, you will need to empty or remove the network database tables.' ); ?></p> 177 <?php endif; ?>178 177 <h3><?php esc_html_e( 'Enabling the Network' ); ?></h3> 179 178 <p><?php _e( 'Complete the following steps to enable the features for creating a network of sites.' ); ?></p> 180 179 <div class="updated inline"><p><?php _e( '<strong>Caution:</strong> We recommend you backup your existing <code>wp-config.php</code> and <code>.htaccess</code> files.' ); ?></p></div> 180 <?php 181 endif; 182 endif; 183 ?> 181 184 <ol> 182 185 <li><p><?php printf( __( 'Create a <code>blogs.dir</code> directory in <code>%s</code>. This directory is used to stored uploaded media for your additional sites and must be writeable by the web server.' ), WP_CONTENT_DIR ); ?></p></li> … … 251 254 </textarea></li> 252 255 </ol> 256 <?php if ( !is_multisite() ) { ?> 253 257 <p><?php printf( __( 'Once you complete these steps, your network is enabled and configured.') ); ?> <a href="<?php echo esc_url( admin_url() ); ?>"><?php _e( 'Return to Dashboard' ); ?></a></p> 254 258 <?php 259 } 255 260 } 256 261 … … 270 275 // create wp-config.php / htaccess 271 276 network_step2(); 272 } elseif ( network_domain_check() ) {277 } elseif ( is_multisite() || network_domain_check() ) { 273 278 network_step2(); 274 279 } else {
Note: See TracChangeset
for help on using the changeset viewer.