mirror of
git://develop.git.wordpress.org/
synced 2025-02-23 16:15:31 +01:00
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:
parent
e238cac0cc
commit
8ff43d09f5
@ -172,14 +172,14 @@ if ( ! empty( $messages ) ) {
|
|||||||
// The main site of the network should not be updated on this page.
|
// The main site of the network should not be updated on this page.
|
||||||
if ( $is_main_site ) : ?>
|
if ( $is_main_site ) : ?>
|
||||||
<tr class="form-field">
|
<tr class="form-field">
|
||||||
<th scope="row"><?php _e( 'Site URL' ); ?></th>
|
<th scope="row"><?php _e( 'Site Address (URL)' ); ?></th>
|
||||||
<td><?php echo esc_url( $details->siteurl ); ?></td>
|
<td><?php echo esc_url( $details->domain . $details->path ); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
// For any other site, the scheme, domain, and path can all be changed.
|
// For any other site, the scheme, domain, and path can all be changed.
|
||||||
else : ?>
|
else : ?>
|
||||||
<tr class="form-field form-required">
|
<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>
|
<td><input name="blog[url]" type="text" id="url" value="<?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user