Make WordPress Core

Ticket #41166: 41166.diff

File 41166.diff, 902 bytes (added by lipathor, 8 years ago)

Alternative text for NGINX powered sites

  • src/wp-admin/includes/network.php

    diff --git src/wp-admin/includes/network.php src/wp-admin/includes/network.php
    index fef6b66..8a5b43b 100644
    define('BLOG_ID_CURRENT_SITE', 1); 
    547547                <textarea class="code" readonly="readonly" cols="100" rows="20"><?php echo esc_textarea( $web_config_file ); ?>
    548548                </textarea></li>
    549549                </ol>
    550 
     550    <?php elseif(strstr($_SERVER["SERVER_SOFTWARE"],"nginx")):
     551      echo  '<li><p>';
     552      printf(
     553              __('It seems your network is running with NGINX webserver. Please, visit %1$s to get details about further configuration'),
     554                  '<a href="https://codex.wordpress.org/Nginx" target="_blank">https://codex.wordpress.org/Nginx</a>'
     555      );
     556      echo '</p>'
     557    ?>
    551558        <?php else : // end iis7_supports_permalinks(). construct an htaccess file instead:
    552559
    553560                $ms_files_rewriting = '';