WordPress.org

Make WordPress Core

Ticket #15753: 15753-1.diff

File 15753-1.diff, 1.6 KB (added by kapeels, 3 years ago)

What about this one?

  • wp-admin/network.php

     
    335335?> 
    336336                <h3><?php esc_html_e( 'Enabling the Network' ); ?></h3> 
    337337                <p><?php _e( 'Complete the following steps to enable the features for creating a network of sites.' ); ?></p> 
    338                 <div class="updated inline"><p><?php 
    339                         if ( iis7_supports_permalinks() ) 
    340                                 _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> file.' ); 
     338                <div class="updated inline"><p><?php                 
     339                        if($is_IIS) 
     340                            $permalinkfile  =  file_exists(ABSPATH . DIRECTORY_SEPARATOR . 'web.config') ? " and <code>web.config</code> files." : " file.";  
     341                        else 
     342                            $permalinkfile  =  file_exists(ABSPATH . DIRECTORY_SEPARATOR . '.htaccess') ? " and <code>.htaccess</code> files." : " file.";  
     343                         
     344                        if ( iis7_supports_permalinks() )                             
     345                            _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code>' . $permalinkfile);                         
    341346                        else 
    342                                 _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>.htaccess</code> files.' ); 
     347                            _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code>' . $permalinkfile ); 
    343348                ?></p></div> 
    344349<?php 
    345350        }