WordPress.org

Make WordPress Core

Ticket #41166: 41166v3.diff

File 41166v3.diff, 1.4 KB (added by lipathor, 4 months ago)

Refreshed patch

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

    diff --git src/wp-admin/includes/network.php src/wp-admin/includes/network.php
    index 70cb14ea93..fc6072a765 100644
    function network_step1( $errors = false ) { 
    384384 */
    385385function network_step2( $errors = false ) {
    386386        global $wpdb;
     387        global $is_nginx;
    387388
    388389        $hostname          = get_clean_basedomain();
    389390        $slashed_home      = trailingslashit( get_option( 'home' ) );
    define('BLOG_ID_CURRENT_SITE', 1); 
    616617        </ol>
    617618
    618619                <?php
    619         else : // End iis7_supports_permalinks(). Construct an .htaccess file instead:
     620       elseif($is_nginx): // end iis7_supports_permalinks(). check if server is nginx and print link to Codex:
     621
     622       $section = $subdomain_install ? 'wordpress-multisite-subdomains-rules' : 'wordpress-multisite-subdirectory-rules';
     623       echo  '<li><p>';
     624       printf(
     625               __('It seems your network is running with NGINX webserver. Please, visit %1$s to get details about further configuration'),
     626              '<a href="https://wordpress.org/support/article/nginx/#'.$section.'" target="_blank">https://wordpress.org/support/article/nginx/#'.$section.'</a>'
     627       );
     628       echo '</p>'
     629               ?>
     630               <?php
     631       else : // end of nginx variant, construct .htaccess
     632
    620633
    621634                $ms_files_rewriting = '';
    622635                if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) {