Skip to content

Commit 8ff43d0

Browse files
committed
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
1 parent e238cac commit 8ff43d0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@
172172
// The main site of the network should not be updated on this page.
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
179179
// For any other site, the scheme, domain, and path can all be changed.
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>
185185
<?php endif; ?>

0 commit comments

Comments
 (0)