Ticket #22639: 22639.7.diff
File 22639.7.diff, 2.8 KB (added by , 10 years ago) |
---|
-
wp-admin/network.php
316 316 $wp_siteurl_subdir = trailingslashit( '/' . preg_replace( '#^' . preg_quote( $base, '#' ) . '#', '', $wp_dir_from_root ) ); 317 317 $rewrite_base = ! empty( $wp_siteurl_subdir ) ? ltrim( trailingslashit( $wp_siteurl_subdir ), '/' ) : ''; 318 318 319 $home_path = get_home_path(); 320 319 321 $location_of_wp_config = ABSPATH; 320 322 if ( ! file_exists( ABSPATH . 'wp-config.php' ) && file_exists( dirname( ABSPATH ) . '/wp-config.php' ) ) 321 323 $location_of_wp_config = trailingslashit( dirname( ABSPATH ) ); … … 353 355 <h3><?php esc_html_e( 'Enabling the Network' ); ?></h3> 354 356 <p><?php _e( 'Complete the following steps to enable the features for creating a network of sites.' ); ?></p> 355 357 <div class="updated inline"><p><?php 356 if ( file_exists( ABSPATH. '.htaccess' ) )358 if ( file_exists( $home_path . '.htaccess' ) ) 357 359 printf( __( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>%s</code> files.' ), '.htaccess' ); 358 elseif ( file_exists( ABSPATH. 'web.config' ) )360 elseif ( file_exists( $home_path . 'web.config' ) ) 359 361 printf( __( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>%s</code> files.' ), 'web.config' ); 360 362 else 361 363 _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> file.' ); … … 458 460 EOF; 459 461 460 462 ?> 461 <li><p><?php printf( __( 'Add the following to your <code>web.config</code> file in <code>%s</code>, replacing other WordPress rules:' ), trailingslashit( str_replace( trailingslashit( $wp_siteurl_subdir ), '', ABSPATH ) )); ?></p>463 <li><p><?php printf( __( 'Add the following to your <code>web.config</code> file in <code>%s</code>, replacing other WordPress rules:' ), $home_path ); ?></p> 462 464 <?php 463 465 if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' ) 464 466 echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>'; … … 492 494 EOF; 493 495 494 496 ?> 495 <li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, replacing other WordPress rules:' ), ABSPATH); ?></p>497 <li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, replacing other WordPress rules:' ), $home_path ); ?></p> 496 498 <?php 497 499 if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' ) 498 500 echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>';