WordPress.org

Make WordPress Core

Changeset 36682


Ignore:
Timestamp:
02/24/2016 04:05:23 PM (6 years ago)
Author:
jeremyfelt
Message:

Multisite: Show the main site's domain and path in site-info.php

  • Use the domain and path combination from wp_blogs when displaying the site address for the main site.\
  • Update the text from "Site URL" to "Site Address (URL)" for all sites in site-info.php to better align with how we refer to this in single site.

Props flixos90, rachelbaker.
Fixes #35632.

File:
1 edited

Legend:

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

    r36561 r36682  
    173173        if ( $is_main_site ) : ?>
    174174        <tr class="form-field">
    175             <th scope="row"><?php _e( 'Site URL' ); ?></th>
    176             <td><?php echo esc_url( $details->siteurl ); ?></td>
     175            <th scope="row"><?php _e( 'Site Address (URL)' ); ?></th>
     176            <td><?php echo esc_url( $details->domain . $details->path ); ?></td>
    177177        </tr>
    178178        <?php
     
    180180        else : ?>
    181181        <tr class="form-field form-required">
    182             <th scope="row"><?php _e( 'Site URL' ); ?></th>
     182            <th scope="row"><?php _e( 'Site Address (URL)' ); ?></th>
    183183            <td><input name="blog[url]" type="text" id="url" value="<?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?>" /></td>
    184184        </tr>
Note: See TracChangeset for help on using the changeset viewer.