Make WordPress Core

Ticket #39365: 39365.diff

File 39365.diff, 596 bytes (added by greatislander, 7 years ago)

Patch from https://github.com/WordPress/WordPress/pull/262

  • wp-admin/network/site-info.php

    diff --git a/wp-admin/network/site-info.php b/wp-admin/network/site-info.php
    index d5d5ce4..ada24f0 100644
    a b  
    162162                if ( $is_main_site ) : ?>
    163163                <tr class="form-field">
    164164                        <th scope="row"><?php _e( 'Site Address (URL)' ); ?></th>
    165                         <td><?php echo esc_url( $details->domain . $details->path ); ?></td>
     165                        <td><?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?></td>
    166166                </tr>
    167167                <?php
    168168                // For any other site, the scheme, domain, and path can all be changed.