Ticket #22639: 22639.2.patch
File 22639.2.patch, 2.5 KB (added by , 11 years ago) |
---|
-
wp-admin/network.php
349 349 <h3><?php esc_html_e( 'Enabling the Network' ); ?></h3> 350 350 <p><?php _e( 'Complete the following steps to enable the features for creating a network of sites.' ); ?></p> 351 351 <div class="updated inline"><p><?php 352 if ( file_exists( ABSPATH. '.htaccess' ) )352 if ( file_exists( trailingslashit( str_replace( $wp_dir_from_root, '', ABSPATH ) ) . '.htaccess' ) ) 353 353 printf( __( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>%s</code> files.' ), '.htaccess' ); 354 elseif ( file_exists( ABSPATH. 'web.config' ) )354 elseif ( file_exists( trailingslashit( str_replace( $wp_dir_from_root, '', ABSPATH ) ) . 'web.config' ) ) 355 355 printf( __( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>%s</code> files.' ), 'web.config' ); 356 356 else 357 357 _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> file.' ); … … 454 454 EOF; 455 455 456 456 ?> 457 <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>457 <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( $wp_dir_from_root, '', ABSPATH ) ) ); ?></p> 458 458 <?php 459 459 if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' ) 460 460 echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>'; … … 488 488 EOF; 489 489 490 490 ?> 491 <li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, replacing other WordPress rules:' ), ABSPATH); ?></p>491 <li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, replacing other WordPress rules:' ), trailingslashit( str_replace( $wp_dir_from_root, '', ABSPATH ) ) ); ?></p> 492 492 <?php 493 493 if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' ) 494 494 echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>';