WordPress.org

Make WordPress Core

Changeset 47632


Ignore:
Timestamp:
04/29/2020 02:41:42 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Networks and Sites: Link to Nginx documentation on Network Setup screen when Nginx is in use.

Props lipathor, audrasjb, johnbillion, flixos90.
Fixes #41166.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/network.php

    r47550 r47632  
    379379 * @since 3.0.0
    380380 *
    381  * @global wpdb $wpdb WordPress database abstraction object.
     381 * @global wpdb $wpdb     WordPress database abstraction object.
     382 * @global bool $is_nginx Whether the server software is Nginx or something else.
    382383 *
    383384 * @param WP_Error $errors
    384385 */
    385386function network_step2( $errors = false ) {
    386     global $wpdb;
     387    global $wpdb, $is_nginx;
    387388
    388389    $hostname          = get_clean_basedomain();
     
    617618
    618619        <?php
    619     else : // End iis7_supports_permalinks(). Construct an .htaccess file instead:
     620    elseif ( $is_nginx ) : // End iis7_supports_permalinks(). Link to Nginx documentation instead:
     621
     622        echo '<li><p>';
     623        printf(
     624            /* translators: %s: Documentation URL. */
     625            __( 'It seems your network is running with Nginx web server. <a href="%s">Learn more about further configuration</a>.' ),
     626            __( 'https://wordpress.org/support/article/nginx/' )
     627        );
     628        echo '</p></li>';
     629
     630    else : // End $is_nginx. Construct an .htaccess file instead:
    620631
    621632        $ms_files_rewriting = '';
     
    659670
    660671        <?php
    661     endif; // End IIS/Apache code branches.
     672    endif; // End IIS/Nginx/Apache code branches.
    662673
    663674    if ( ! is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.