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.


git-svn-id: https://develop.svn.wordpress.org/trunk@36682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2016-02-24 16:05:23 +00:00
parent e238cac0cc
commit 8ff43d09f5

View File

@ -172,14 +172,14 @@ if ( ! empty( $messages ) ) {
// The main site of the network should not be updated on this page.
if ( $is_main_site ) : ?>
<tr class="form-field">
<th scope="row"><?php _e( 'Site URL' ); ?></th>
<td><?php echo esc_url( $details->siteurl ); ?></td>
<th scope="row"><?php _e( 'Site Address (URL)' ); ?></th>
<td><?php echo esc_url( $details->domain . $details->path ); ?></td>
</tr>
<?php
// For any other site, the scheme, domain, and path can all be changed.
else : ?>
<tr class="form-field form-required">
<th scope="row"><?php _e( 'Site URL' ); ?></th>
<th scope="row"><?php _e( 'Site Address (URL)' ); ?></th>
<td><input name="blog[url]" type="text" id="url" value="<?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?>" /></td>
</tr>
<?php endif; ?>