Make WordPress Core

Ticket #41166: 41166.3.diff

File 41166.3.diff, 1.4 KB (added by audrasjb, 5 years ago)

Patch refresh for coding standards and better i18n.

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

    diff --git a/src/wp-admin/includes/network.php b/src/wp-admin/includes/network.php
    index 70cb14ea93..c4f2c83758 100644
    a b 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                $section = $subdomain_install ? 'wordpress-multisite-subdomains-rules' : 'wordpress-multisite-subdirectory-rules';
     622                echo  '<li><p>';
     623                printf(
     624                        /* translators: Documentation link. */
     625                        __( 'It seems your network is running with NGINX webserver. Please, visit %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               
     631                <?php
     632        else : // end of nginx variant, construct .htaccess
    620633
    621634                $ms_files_rewriting = '';
    622635                if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) {